All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] kvm tools: fix vhost-net broken since fa7226f88012713a73d0cba4955444ea109e9458
@ 2013-11-01  2:50 Ying-Shiuan Pan
  2013-11-01  2:50 ` [PATCH 1/2] kvm tools: virtio-net has to open tap device before vhost-net init Ying-Shiuan Pan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ying-Shiuan Pan @ 2013-11-01  2:50 UTC (permalink / raw)
  To: kvm; +Cc: yspan, penberg, levinsasha928, asias.hejun, Ying-Shiuan Pan

These patch series fix 2 vhost-net problems. There were 2 problems after
commit fa7226f88012713a73d0cba4955444ea109e9458. 
(1) vhost-net requires tap_fd for VHOST_SET_BACKEND, but opening tap device
was postponed to VIRTIO_CONFIG_S_DRIVER_OK. The wrong order of initialization
caused vhost-net used a invalid tap_fd for ioctl.
(2) virtio-net of kvm tool started to support mergeable rx buffers since
commit 8c2684de6fb1afc95321e7e0f30550acdcc08186, but kvm tool did not tell
vhost-net that he is using mergeable rx buffers.

test script:
$ sudo ./lkvm run --kernel ../../arch/x86/boot/bzImage --no-dhcp --net mode=tap,vhost=1

Ying-Shiuan Pan (2):
  kvm tools: virtio-net has to open tap device before vhost-net init.
  kvm tools: vhost-net: setup mergeable rx buffers feature

 tools/kvm/virtio/net.c | 54 +++++++++++++++++++++++++++-----------------------
 1 file changed, 29 insertions(+), 25 deletions(-)

-- 
1.8.1.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-11-04  8:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-01  2:50 [PATCH 0/2] kvm tools: fix vhost-net broken since fa7226f88012713a73d0cba4955444ea109e9458 Ying-Shiuan Pan
2013-11-01  2:50 ` [PATCH 1/2] kvm tools: virtio-net has to open tap device before vhost-net init Ying-Shiuan Pan
2013-11-01  2:51 ` [PATCH 2/2] kvm tools: vhost-net: setup mergeable rx buffers feature Ying-Shiuan Pan
2013-11-04  8:41 ` [PATCH 0/2] kvm tools: fix vhost-net broken since fa7226f88012713a73d0cba4955444ea109e9458 Pekka Enberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.