在尝试将PCI设备绑定到vfio-pci驱动时遇到“cannot bind to driver vfio-pci: [errno 19] no such device”错误,通常意味着系统无法找到或访问指定的设备。为了解决这个问题,你可以按照以下步骤进行排查和解决: 确认vfio-pci驱动是否已正确安装: 使用以下命令检查vfio-pci驱动是否已经加载到内核中: bash lsmod | gr...
Maybe make sure the host does not touch the device by adding vfio-pci.ids=MANU:DEVI to your kernel parameters (or /etc/modprobe/ configuration files), where MANU:DEVI is the ID of the device that is shows when you use lspci -n. If you need to move the ...
BIND_PID1="8086 1e31" BIND_BDF1="0000:00:14.0" sudo modprobe vfio-pci echo "$BIND_PID1" > /sys/bus/pci/drivers/vfio-pci/new_id echo "$BIND_BDF1" > /sys/bus/pci/devices/$BIND_BDF1/driver/unbind echo "$BIND_BDF1" > /sys/bus/pci/drivers/vfio-pci/bind echo "$BIND_PID1" ...