VFIO is a secure userspace driver framework for Linux, making use of hardware IOMMU enforced device isolation. VFIO is often used in conjunction with QEMU/KVM for device assignment to virtual machines.
I am using the following code to test a PCIe BAR register write through VFIO_PCI APIs.
` struct vfio_group_status group_status = { .argsz = sizeof(group_status) };
struct vfio_device_info device_info = { .argsz = sizeof(device_info) };
…
I have a program running on a QEMU VM. The program running inside this VM gets notified by a program on the host via interrupts and using QEMU ivshmem. The program on the host creates an eventfd and sends this file descriptor to QEMU when the VM…
I am using aarch64 Linux to test VFIO-IOMMU feature in KVM VM.
The host is cortex-A78 running Linux-5.10.104 (with VFIO_IOMMU enabled). The guest OS is Ubuntu-22.04 (Linux-5.15, also with VFIO_IOMMU enabled).
The VM is created with virt-manager…
I am new in these waters. After installing aarch64 arch on several arm boards. Decided to try android x86 and then android arm.
However in documentations it says it supports nvidia through nouvaeu driver I have rtx 3060 and NV170 is not supported in…
I'm trying to map an FPGA on the PCI-e bus using the vfio-pci driver. I can read registers correctly but, when I try to write registers, it seems that a register is written and I can read it back, but, when I stop the process I use to read/write and…
I have enabled virtualization in the BIOS and enabled the IOMMU on kernel command line (intel_iommu=on).
I bound a solarflare NIC to the vfio-pci device and added a udev rule to ensure the vfio device is accessible by my non-root user (e.g.,…
I have been trying to load the vfio-pci module into the kernel using the "modprobe vfio-pci" command with no success.
I am a newbie when it comes to low level programming, so I suspect I might be doing something wrong.
What I tried:
sudo modprobe…
I have few queries regarding DPDK's virtio driver when used on ARM machine. We do unbind virti-pci driver(of guest Kernel) from virto-net device emualted by QEMU, and then bind it to VFIO-PCI driver(of guest Kernel) but I didn't understand why we…
I am running the latest Proxmox (6.3-3 at this time, fully updated) and attempting to passthrough the onboard GPU on my Core i7 4770 CPU to a Windows 10 VM. I have already enabled iommu on the system and also told grub to not let the system claim…
I'm stuck between two worlds here. I have part of a VM in virsh/XML and part in qemu native commands and I'm trying to unify them so my last bit is to transform this XML part into qemu native:
…
I'm trying to reverse engineer some PCI device under QEMU / VFIO environment and I would like to trace all I/O operations on physical memory made by the card. The card makes use of PCI bus mastering and writes stuff to other devices and most…
I am working on a userspace PCI driver which uses SPDK/VFIO APIs to do dma access.
Currently for each DMA allocation request I need to fill up structure spdk_vfio_dma_map then call system call ioctl(fd, VFIO_IOMMU_MAP_DMA, &dma_map) to map the DMA…
I'm currently trying to setup a passthrough of my nvidia GPU to a windows guest. I'm actually using arch
here is what I have done so far and the issues I'm facing :
enabled iommu
dmesg|grep -i iommu
[ 0.000000] Command line:…
I am trying to understand how vfio works on pci.
I have read https://www.kernel.org/doc/Documentation/vfio.txt, and I am writting a test based on it.
At some point,my code looks like this:
/* Get pci device information (number of regions and…