VFIO
Error - no supported modules(DPDK driver) are loaded
[ 45.422045] VFIO - User Level meta-driver version: 0.3 Y Error - no supported modules(DPDK driver) are loaded [root@localhost ~]#
正常情况下
[root@localhost cloud_images]# lsmod | grep vfio vfio_pci 262144 0 vfio_virqfd 262144 1 vfio_pci vfio_iommu_type1 262144 0 vfio 262144 3 vfio_iommu_type1,vfio_pci
Error - no supported modules(DPDK driver) are loaded
只执行了modprobe vfio enable_unsafe_noiommu_mode=1
[root@localhost ~]# modprobe vfio-pci [root@localhost ~]# lsmod | grep vfio vfio_pci 262144 0 vfio_virqfd 262144 1 vfio_pci vfio_iommu_type1 262144 0 vfio 262144 2 vfio_iommu_type1,vfio_pci [root@localhost ~]#
[root@localhost ~]# dpdk-devbind -s Network devices using kernel driver =================================== 0000:00:01.0 'Virtio network device 1000' if=eth0 drv=virtio-pci unused=vfio-pci No 'Crypto' devices detected ============================ No 'Eventdev' devices detected ============================== No 'Mempool' devices detected ============================= No 'Compress' devices detected ============================== [root@localhost ~]# dpdk-devbind -b vfio-pci 0000:00:01.0
EAL: Detected 4 lcore(s) EAL: Detected 1 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket /var/run/dpdk/pg/mp_socket EAL: Selected IOVA mode 'PA' EAL: No free hugepages reported in hugepages-524288kB EAL: No free hugepages reported in hugepages-524288kB EAL: Probing VFIO support... EAL: VFIO support initialized EAL: PCI device 0000:00:01.0 on NUMA socket -1 EAL: Invalid NUMA socket, default to 0 EAL: probe driver: 1af4:1000 net_virtio EAL: using IOMMU type 8 (No-IOMMU) [ 284.255173] vfio-pci 0000:00:01.0: vfio-noiommu device opened by user (testpmd:973) EAL: Ignore mapping IO port bar(0) get_cfg_addr(): bar 4 base addr is NULL get_cfg_addr(): bar 4 base addr is NULL get_cfg_addr(): bar 4 base addr is NULL get_cfg_addr(): bar 4 base addr is NULL Set macswap packet forwarding mode Interactive-mode selected EAL: Error - exiting with code: 1 Cause: nb-cores should be > 0 and <= 2