Build an experimental environment:
Troubleshoot
First step load Driver
Second Step switching driver
All QEMU-supported cards are used
[[Email protected]:~/vm/DPDK]%Cat Start.shsudo Qemu-system-x86_64-nographic-vnc127.0.0.1:1-enable-KVM-M 2G-CPU nehalem-smp cores=2, threads=2, sockets=2 -numa node,mem=1g,cpus=0-3, nodeid=0 -numa node,mem=1g,cpus=4-7, nodeid=1 -drive File=disk.img,if=Virtio-net nic,vlan=0, model=virtio,macaddr='00:00:00:01:00:00' -net nic,vlan=1, model=ne2k_pci,macaddr='00:00:00:01:00:01' -net nic,vlan=2, model=i82551,macaddr='00:00:00:01:00:02' -net nic,vlan=2, model=i82557b,macaddr='00:00:00:01:00:03' -net nic,vlan=2, model=i82559er,macaddr='00:00:00:01:00:04' -net nic,vlan=2, model=rtl8139,macaddr='00:00:00:01:00:05' -net nic,vlan=2, model=e1000,macaddr='00:00:00:01:00:06' -net nic,vlan=2, model=pcnet,macaddr='00:00:00:01:00:07' -net tap,vlan=0, ifname=tap-dpdk-Control-net tap,vlan=1, ifname=tap-dpdk-1, script=no,downscript=No-net tap,vlan=2, ifname=tap-dpdk-2, Script=no,downscript=no &# -device vfio-pci,host='0000:00:19.0'#ne2k_pci, I82551,i82557b,i82559er,rtl8139,e1000,pcnet,virtio[[email protected]:~/VM/DPDK]
Only virtio are on the queue.
[Email protected] ~]# LSPCI-VV |grep-e'^00| MSI'xx:00.0Host Bridge:intel Corporation 440fx-82441fx PMC [Natoma] (rev Geneva)xx:01.0Isa Bridge:intel Corporation 82371SB PIIX3 Isa [natoma/Triton II]xx:01.1IdeInterface: Intel Corporation 82371SB PIIX3 IDE [Natoma/triton II] (prog-if the[Master])xx:01.3Bridge:intel Corporation 82371AB/EB/MB PIIX4 ACPI (revGeneva)xx:02.0VGA compatible Controller:device1234:1111(Rev Geneva) (prog-if xx[VGA Controller])xx:03.0Ethernet controller:red Hat, INC Virtio network device capabilities: [98] Msi-x: Enable+ count=3masked-xx:04.0Ethernet Controller:realtek Semiconductor Co., Ltd. rtl-8029(AS)xx:05.0Ethernet Controller:intel Corporation 8255xer/82551IT Fast Ethernet Controller (rev 0f)xx:06.0Ethernet Controller:intel Corporation82557/8/9/0/1Ethernet Pro -(Rev Geneva)xx:07.0Ethernet Controller:intel Corporation 8255xer/82551it Fast Ethernet Controller (rev the)xx:08.0Ethernet Controller:realtek Semiconductor Co., Ltd. rtl-8100/8101L/8139PCI Fast Ethernet Adapter (rev -)xx:09.0Ethernet Controller:intel Corporation 82540EM Gigabit Ethernet Controller (revGeneva)xx: 0a.0Ethernet controller:advanced Micro Devices, Inc. [AMD] 79c970 [PCnet32 LANCE] (revTen)xx: 0b.0SCSI Storage controller:red Hat, INC Virtio block device capabilities: [98] Msi-x: Enable+ count=2masked-[[Email protected]~]#
Xxx
[Email protected] tools]#/dpdk-devbind.py-b igb_uio eth1[[email protected] tools]#./dpdk-devbind.py-b igb_uio eth2[[email protected] tools]#./dpdk-devbind.py-Snetwork Devicesusingdpdk-compatible driver============================================0000:xx:04.0 'Virtio Network Device'Drv=igb_uio unused=0000:xx:05.0 'Virtio Network Device'Drv=igb_uio unused=Network DevicesusingKernel driver===================================0000:xx:03.0 'Virtio Network Device' if=eth0 Drv=virtio-pci Unused=igb_uio *active*Other network devices=====================<none>[email protected] tools]#
All of QEMU's NICs can use UiO
[Email protected] tools]#/dpdk-devbind.py-Snetwork Devicesusingdpdk-compatible driver============================================<none>Network DevicesusingKernel driver===================================0000:xx:03.0 'Virtio Network Device' if=eth0 Drv=virtio-pci Unused=igb_uio *active*0000:xx:08.0 'rtl-8100/8101l/8139 PCI Fast Ethernet Adapter' if=ens8 DRV=8139CP unused=Igb_uio0000:xx:09.0 '82540EM Gigabit Ethernet Controller' if=ens9 drv=e1000 unused=Igb_uio Other network devices=====================0000:xx:04.0 'RTL-8029 (AS)'Unused=Igb_uio0000:xx:05.0 '8255xer/82551it Fast Ethernet Controller'Unused=Igb_uio0000:xx:06.0 '82557/8/9/0/1 Ethernet Pro'Unused=Igb_uio0000:xx:07.0 '8255xer/82551it Fast Ethernet Controller'Unused=Igb_uio0000:xx: 0a.0 '79c970 [PCnet32 LANCE]'Unused=Igb_uio[[email protected] tools]#
[DPDK] familiarity with the SDK and initial use (i) (QEMU Build experimental environment)