36 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
119
views
Fully release VFIO resources in DPDK
I am writing a C program that periodically loads/unloads a dynamic library. The dynamic library performs network operations using DPDK, and in my setup, it relies on the VFIO framework.
This is a ...
1
vote
0
answers
242
views
Issue with Mellanox ConnectX-5 and VFIO-PCI Binding in DPDK — "mlx5_common: Verbs device not found" Error
I am using a Mellanox ConnectX-5 MCX516A-CCAT card and trying to achieve 100G Ethernet data transmission between a client PC and an SoC board.
I have installed the Mellanox drivers and DPDK, and I ...
0
votes
1
answer
295
views
QEMU VFIO noiommu mode: Error accessing /dev/vfio/0 despite using noiommu-0 device
I enabled VFIO's noiommu mode, and after binding the device to the VFIO driver, I see noiommu-0 under /dev/vfio/. Then, I try to pass the device through to a VM on QEMU, but QEMU throws an error ...
0
votes
4
answers
856
views
For DPDK, do I need to run vfio-pci in NO-IOMMU mode for AWS EC2 instances?
I've read that, in order to use DPDK (in my case, with the AWS ENA poll-mode driver, developed by AWS as part of DPDK) for a kernel-bypass networking application, you need to either have an IOMMU ...
0
votes
1
answer
267
views
Is there a Windows user space API similar to VFIO for Linux for writing drivers for custom hardware?
As part of learning about FPGA design have some boards with Xilinx Kintex-7 or Artix-7 FPGAs where the FPGAs have a PCIe connection to the PC they are installed in. The FPGA designs expose a PCIe ...
1
vote
1
answer
698
views
PCIe MSI Interrupts directly into Userspace with VFIO & IOMMU
I am currently writing a userspace driver to interface with an Altera PCIe card. My goal is to reduce max interrupt latency as much as possible.
I am currently using VFIO_DEVICE_SET_IRQS ioctl to ...
0
votes
0
answers
184
views
QDMA DPDK driver results "Packet Length Mismatch" Error during data transfer
I am new to DPDK and QDMA. I am using alveo u200 with OpenNIC. I have bind the interface with VFIO-PCI driver. While executing Pktgen/TestPMD Application I am getting "Packet Length mismatch ...
0
votes
2
answers
526
views
Cannot open /dev/vfio/noiommu-0: Operation not permitted
I am trying to open file /dev/vfio/noiommu-0 with read and write access (O_RDWR), but the error occurs.
char* filename = "/dev/vfio/noiommu-0";
int fd = open(filename, O_RDWR);
if (fd < 0)...
0
votes
1
answer
452
views
DPDK TestPMD application results 0 rx packets
I am testing DPDK TestPMD application in Avleo u200. I am executing below commands
dpdk-20.11]$ sudo ./usertools/dpdk-devbind.py -b vfio-pci 08:00.0 08:00.1
dpdk-20.11]$ sudo ./build/app/dpdk-testpmd ...
0
votes
0
answers
104
views
Sharing Mutex Between Processes in VFIO Mapped Region
So I have one process running on a host machine that creates a shared memory region. This shared memory region is then passed to a process running in a guest VM. The shared memory region gets exposed ...
2
votes
1
answer
8k
views
Dpdk20.11.3 cannot bind device to vfio-pci
I am using dpdk to do user space network IO. But I cannot bind eth0 to vfio-pci.
My environment
vmware workstation 17 pro
Ubuntu 20.04
DPDK 20.11.3
What I have done
setup two network card: eht0 (...
0
votes
1
answer
314
views
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 ...
0
votes
1
answer
1k
views
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 ...
0
votes
2
answers
666
views
When using vfio-pci, FPGA registers do not persist when user space C program is re-started
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,...
2
votes
0
answers
500
views
How to load vfio driver before ahci driver with mkinitcpio?
Good morning all,
I'd want to attach to vfio driver at boot my secondary sata controller in a manjaro os (kernel 5.16.7).
Usually, I add the devices in /etc/modprobe.d/vfio.conf, for example:
options ...