virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost
@ 2012-06-25 10:04 Jason Wang
  2012-06-25 10:04 ` [RFC V2 PATCH 1/4] option: introduce qemu_get_opt_all() Jason Wang
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jason Wang @ 2012-06-25 10:04 UTC (permalink / raw)
  To: krkumar2, habanero, aliguori, rusty, mst, mashirle, qemu-devel,
	virtualization, tahm, jwhan, akong
  Cc: kvm

Hello all:

This seires is an update of last version of multiqueue support to add multiqueue
capability to both tap and virtio-net.

Some kinds of tap backends has (macvatp in linux) or would (tap) support
multiqueue. In such kind of tap backend, each file descriptor of a tap is a
qeueu and ioctls were prodived to attach an exist tap file descriptor to the
tun/tap device. So the patch let qemu to use this kind of backend, and let it
can transmit and receving packets through multiple file descriptors.

Patch 1 introduce a new help to get all matched options, after this patch, we
could pass multiple file descriptors to a signle netdev by:

      qemu -netdev tap,id=hn0,fd=10,fd=11,...

Patch 2 introduce generic helpers in tap to attach or detach a file descriptor
from a tap device, emulated nics could use this helper to enable/disable queues.

Patch 3 modifies the NICState to allow multiple VLANClientState to be stored in
it, with this patch, qemu has basic support of multiple capable tap backend.

Patch 4 converts virtio-net/vhost to be multiple capable. The vhost device were
created per tx/rx queue pairs as usual.

Changes from V1:

- rebase to the latest
- fix memory leak in parse_netdev
- fix guest notifiers assignment/de-assignment
- changes the command lines to:
   qemu -netdev tap,queues=2 -device virtio-net-pci,queues=2

TODO:
- netdev_add
- bridge helper for multiple queue backend

References:
- V1 http://comments.gmane.org/gmane.comp.emulators.qemu/100481

Please review and comments.
---

Jason Wang (4):
      option: introduce qemu_get_opt_all()
      tap: multiqueue support
      net: multiqueue support
      virtio-net: add multiqueue support


 hw/dp8393x.c         |    2 
 hw/mcf_fec.c         |    2 
 hw/qdev-properties.c |   33 +++-
 hw/qdev.h            |    3 
 hw/vhost.c           |   58 ++++--
 hw/vhost.h           |    1 
 hw/vhost_net.c       |    7 +
 hw/vhost_net.h       |    2 
 hw/virtio-net.c      |  461 +++++++++++++++++++++++++++++++++-----------------
 hw/virtio-net.h      |    3 
 net.c                |   62 ++++++-
 net.h                |   16 +-
 net/tap-aix.c        |   13 +
 net/tap-bsd.c        |   13 +
 net/tap-haiku.c      |   13 +
 net/tap-linux.c      |   55 ++++++
 net/tap-linux.h      |    3 
 net/tap-solaris.c    |   13 +
 net/tap-win32.c      |   11 +
 net/tap.c            |  189 +++++++++++++-------
 net/tap.h            |    7 +
 qemu-option.c        |   19 ++
 qemu-option.h        |    2 
 23 files changed, 714 insertions(+), 274 deletions(-)

-- 
Signature

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

end of thread, other threads:[~2012-07-02  7:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-25 10:04 [RFC V2 PATCH 0/4] Multiqueue support for tap and virtio-net/vhost Jason Wang
2012-06-25 10:04 ` [RFC V2 PATCH 1/4] option: introduce qemu_get_opt_all() Jason Wang
2012-06-25 10:04 ` [RFC V2 PATCH 2/4] tap: multiqueue support Jason Wang
2012-06-25 10:04 ` [RFC V2 PATCH 3/4] net: " Jason Wang
2012-06-25 10:04 ` [RFC V2 PATCH 4/4] virtio-net: add " Jason Wang
2012-07-01  9:43   ` Michael S. Tsirkin
2012-07-02  7:04     ` Jason Wang
2012-07-02  7:34       ` Michael S. Tsirkin

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).