Questions tagged [vfio]

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.

30 questions
0
votes
1 answer

VFIO PCIe BAR write won't work. Register value falls back when program execution finished

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) }; …
Clark
  • 1
  • 1
0
votes
0 answers

VFIO interrupts using eventfd: can eventfd semaphore behaviour be maintained?

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…
MUAS
  • 519
  • 1
  • 7
  • 20
0
votes
1 answer

How to add VFIO-IOMMU in KVM virtual machine (Aarch64)?

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…
wangt13
  • 959
  • 7
  • 17
0
votes
0 answers

Why Android x86 or bliss os does not load virtio gpu or amdgpu driver for RX 6500 XT passthrough?

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…
Gediz GÜRSU
  • 555
  • 4
  • 12
0
votes
1 answer

Cannot write FPGA register when mapping it using vfio-pci

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…
0
votes
1 answer

Cannot open vfio device in docker container as non-root user

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.,…
Gabe
  • 847
  • 1
  • 9
  • 16
0
votes
0 answers

Modprobe vfio-pci not working inside VM, what do I do wrong?

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…
Mihai
  • 100
  • 13
0
votes
0 answers

Query about Virtio PMD in DPDK

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…
Milan
  • 1,447
  • 5
  • 19
  • 27
0
votes
2 answers

VFIO - igpu passthrough on Intel 4770 to a virtual machine (Host Os Proxmox)

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…
0
votes
1 answer

error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused

I added a virtual network card from a physical network card to the xml file of the virtual machine.
CHJ
  • 1
  • 1
  • 2
0
votes
0 answers

qemu from xml to native assign PCI device

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:
Romeo Mihalcea
  • 9,714
  • 12
  • 50
  • 102
0
votes
1 answer

Tracing PCI device memory I/O operations in QEMU / VFIO environment

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…
cafebabe_t
  • 65
  • 1
  • 9
0
votes
1 answer

How can I improve SPDK performance on userspace DMA access?

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…
keye
  • 135
  • 1
  • 14
0
votes
2 answers

nvidia 1060 gpu passhtrough with libvirt

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:…
gfrancqu
  • 95
  • 8
0
votes
1 answer

what is "num_regions" returned by the ioctl (VFIO_DEVICE_GET_REGION_INFO) in vfio

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…
user1159290
  • 951
  • 9
  • 27
1
2