[dpdk-users] Cannot Bind eth0 to vfio-pci Driver

Murali Krishna murali.krishna at broadcom.com
Mon Dec 10 06:28:47 CET 2018

I encountered same issue. I was able to bind devices to vfio-pci after
enabling VT-d in system bios. Check if this helps.


-----Original Message-----
From: users [mailto:users-bounces at dpdk.org] On Behalf Of Ramzah Rehman
Sent: Monday, December 10, 2018 9:19 AM
To: users at dpdk.org
Subject: [dpdk-users] Cannot Bind eth0 to vfio-pci Driver

I am trying to bind an interface eth0 to vfio driver. I have made sure
iommu is enabled in grub and kernel. I have loaded the module vfio-pci. Ran
following commands

#modprobe vfio-pci
#chmod a+x /dev/vfio
#chmod 0666 /dev/vfio/*
#export DPDK_DIR=/usr/src/dpdk-stable-17.11.4
#sudo $DPDK_DIR/usertools/dpdk-devbind.py --bind=vfio-pci 02:01.0

I got following error:

Error: bind failed for 0000:02:01.0 - Cannot bind to driver vfio-pci

I checked the error in dmesg:

Got :

[ 1815.793823] vfio-pci: probe of 0000:02:01.0 failed with error -22

let me know the reason.

Best Regards,
Ramzah Rehman

More information about the users mailing list