KVM
文章平均质量分 72
alex_mianmian
这个作者很懒,什么都没留下…
展开
-
How does QEMU/KVM/VFIO-PCI passthrough HW to Virtual Machine
QEMU, KVM and VFIO-PCI work together to passthrough HW to virtual machine.Passthrough means virtual machine can directly access HW, no other software between virtual machine and HW.There are two pathes from virtual machine to HW. One is DMA access HW,原创 2021-09-11 17:30:44 · 221 阅读 · 0 评论 -
QEMU/KVM/Virsh Tips
Basic concepts:https://blog.csdn.net/qq_34018840/article/details/1011945711. Virtlib xml to QEMU command line:virsh domxml-to-native qemu-argv my-virtual-machine.xmlAs:2. QEMU command line to XML3. Virtual machine boot error of libvirt unab...原创 2021-08-15 11:54:19 · 4111 阅读 · 0 评论 -
GDB can‘t stop start_kernel on QEMU ARM64 model
Found a strange issue when use GDB debug Linux Kernel on QEMU ARM64 virtual machine. The issue is GDB can't stop the kernel as following.The reason is ARM64 kernel enabled a new feature KASLR(Kernel address space layout randomization). To disable it.原创 2021-08-09 20:19:50 · 159 阅读 · 0 评论 -
VFIO-MDEV driver(virtual device) trigger interrupt to virtual machine
Last blog records how to data access between VFIO-MDEV driver(virtual device) to virtual machine. Now this blog records the interrupt from VFIO-MDEV driver(virtual device) to virtual machine.Host side:Actually mtty sample code has the good implementat.原创 2021-08-05 22:26:37 · 359 阅读 · 0 评论 -
VFIO-MDEV driver access virtual machine‘s memory
As I created myself VFIO-MDEV driver/virtual device, the next steps I can think are:1) make virtual machine can access real hardware through this VFIO-MDEV driver.2) hardware/VFIO-MDEV driver can access the buffer in virtual machine. Because many HW wi原创 2021-08-04 19:47:44 · 416 阅读 · 0 评论 -
Create my MDEV device and use it in Virtual Machine
Refer to :https://blog.csdn.net/alex_mianmian/article/details/1186785101. Code ArchitectureIn host_driver:tranx_card.c is the MDEV driver. It's actully mtty.c. I just modified it as following:This modification is set new PCIe configure space v.原创 2021-07-29 22:05:08 · 303 阅读 · 0 评论 -
Run VFIO-MDEV mtty example on Ubuntu20.04
1. Check if VFIO is already in the System.Linux 5.4 build the VFIO into the kernel. Here is the way to check it.Looks like VFIO_MDEV is still a module.Another way to check:Check kernel log too:OK, looks like my system already have VFIO. But原创 2021-07-12 20:17:21 · 1047 阅读 · 0 评论 -
Install KVM on Ubuntu 20
1. Check if CPU support KVMcpuinfo show's 12 times of vmx|svm, it means CPU supports KVM2. Check if board support KVM acceleration3. Install KVM4. Check daemon and network5. Install virtual machineFirstly you need to get an imag...原创 2021-07-10 11:32:10 · 134 阅读 · 0 评论