* [dpdk-users] Binding a virtio-net device to DPDK in guest hangs
@ 2018-08-31 5:46 Kevin Wilson
0 siblings, 0 replies; only message in thread
From: Kevin Wilson @ 2018-08-31 5:46 UTC (permalink / raw)
To: users
Hi all,
I am launching a VM, and than tries to bind a virtio-net device in the
guest and it hangs. No messages
appear in the kernel log after I run the bind command.
The host is an Ubuntu 18.04 machine with QEMU version 2.11.1.
This is how I launch the VM:
First, I run the vhost-switch sample app thus (it is with dpdk-18,08):
echo 2048 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
./build/vhost-switch -l 0-3 -n 4 --socket-mem 1024 -- --socket-file
/tmp/sock0 --client -p 0x1
Then from a second terminal, I run:
mem=2048M
/usr/bin/qemu-system-x86_64 -name us-vhost-vm1 \
-cpu host -enable-kvm -m 2048 -object
memory-backend-file,id=mem,size=2048M,mem-path=/mnt/huge,share=on
-numa node,memdev=mem -mem-prealloc \
-smp cores=2,sockets=1 -drive file=$vm_img,index=0,media=disk,format=$FORMAT \
-netdev user,id=myid,hostfwd=tcp::10022-:22 -device
rtl8139,netdev=myid,id=net0,mac=00:00:00:00:10:01 \
-chardev socket,id=char0,path=/tmp/sock0,server -netdev
type=vhost-user,id=mynet1,chardev=char0,vhostforce \
-device virtio-net-pci,mac=52:54:00:00:00:01,netdev=mynet1
Then in the guest I have:
./dpdk-devbind.py -s
Network devices using DPDK-compatible driver
============================================
<none>
Network devices using kernel driver
===================================
0000:00:03.0 'RTL-8100/8101L/8139 PCI Fast Ethernet Adapter 8139'
if=eth1 drv=8139cp unused=vfio-pci,uio_pci_generic *Active*
0000:00:04.0 'Virtio network device 1000' if=eth0 drv=virtio-pci
unused=vfio-pci,uio_pci_generic
Other Network devices
=====================
<none>
and also
ethtool -i eth0
driver: virtio_net
version: 1.0.0
firmware-version:
expansion-rom-version:
bus-info: 0000:00:04.0
And when I run
/dpdk-devbind.py -b uio_pci_generic 0000:00:04.0
it hangs endlessly, without any messages in kernel log (neither in
guest nor in host)
Any ideas ?
Regards,
Kevin
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-31 5:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-31 5:46 [dpdk-users] Binding a virtio-net device to DPDK in guest hangs Kevin Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).