[ovs-dev] vhost user cannot recv any packet from VM
Tim Deng
dpdkdev at 126.com
Sat May 23 09:40:49 UTC 2015
Just share with you the solution I found from dpdk dev mail list:
make sure qemu flag to map the memory as shared, i.e.:
-object memory-backend-file,id=mem,size=1024M,mem-path=/mnt/huge,share=on
(the keyword is share=on)
the document has to mention this.
Thanks,
Tim
在 2015-05-23 12:11:22,"Tim Deng" <dpdkdev at 126.com> 写道:
>
>Hi,
>
>I am using the latest ovs code base to try vhost user based on Ciara Loftus's patch
>("[PATCH v4] netdev-dpdk: add dpdk vhost-user ports" which is not in ovs upstream yet).
>
>things go smoothly during VM bootstrap, as I can see following logs:
>VHOST_CONFIG: new virtio connection is 47
>VHOST_CONFIG: new device, handle is 0
>VHOST_CONFIG: read message VHOST_USER_SET_OWNER
>VHOST_CONFIG: read message VHOST_USER_GET_FEATURES
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
>VHOST_CONFIG: vring call idx:0 file:48
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
>VHOST_CONFIG: vring call idx:1 file:49
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
>VHOST_CONFIG: vring call idx:0 file:50
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_CALL
>VHOST_CONFIG: vring call idx:1 file:48
>VHOST_CONFIG: read message VHOST_USER_SET_FEATURES
>VHOST_CONFIG: (0) Mergeable RX buffers disabled
>VHOST_CONFIG: read message VHOST_USER_SET_MEM_TABLE
>VHOST_CONFIG: mapped region 0 fd:49 to 0x7f6740000000 sz:0xa0000 off:0x0
>VHOST_CONFIG: REGION: 0 GPA: (nil) QEMU VA: 0x7f7340000000 SIZE (655360)
>VHOST_CONFIG: mapped region 1 fd:51 to 0x7f6700000000 sz:0x40000000 off:0xc0000
>VHOST_CONFIG: REGION: 1 GPA: 0xc0000 QEMU VA: 0x7f73400c0000 SIZE (1072955392)
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR
>VHOST_CONFIG: (0) mapped address desc: 0x7f6739fdc000
>VHOST_CONFIG: (0) mapped address avail: 0x7f6739fdd000
>VHOST_CONFIG: (0) mapped address used: 0x7f6739fde000
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK
>VHOST_CONFIG: vring kick idx:0 file:52
>VHOST_CONFIG: virtio isn't ready for processing.
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_NUM
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_BASE
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_ADDR
>VHOST_CONFIG: (0) mapped address desc: 0x7f6739fb4000
>VHOST_CONFIG: (0) mapped address avail: 0x7f6739fb5000
>VHOST_CONFIG: (0) mapped address used: 0x7f6739fb6000
>VHOST_CONFIG: read message VHOST_USER_SET_VRING_KICK
>VHOST_CONFIG: vring kick idx:1 file:53
>VHOST_CONFIG: virtio is now ready for processing.
>2015-05-23T04:02:33Z|00001|dpdk(vhost_thread2)|INFO|vHost Device '/usr/local/var/run/openvswitch/dpdkvhostuser0' (0) has been added
>
>However I cannot see any packet was polled afterwards even I generated some traffic inside the VM.
>
>My host and VM are using 3.19.0-15-generic, and qemu 2.2.0 is used.
>
>Could any one please share any hint?
>
>Thanks,
>Tim
More information about the dev
mailing list