Skip to content

vhost-vDPA multiqueue

Jason Wang qemu-devel 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest10 patches 0 repliesNew
  2. v410 patches 6 repliesSuperseded
  3. v310 patches 7 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/221 patches7 repliesSuperseded
v2 posting 1/218 patches4 repliesSuperseded
v118 patches31 repliesSuperseded

Changes in v5 from the cover letter

- rebase on top of Michael's pci branch

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10vhost-vdpa: open device fd in net_init_vhost_vdpa()net/vhost-vdpa.c+15 -80 replies
2/10vhost-vdpa: classify one time requesthw/virtio/vhost-vdpa.c include/hw/virtio/vhost-vdpa.h+48 -60 replies
3/10vhost-vdpa: prepare for the multiqueue supporthw/virtio/vhost-vdpa.c+2 -20 replies
4/10vhost-vdpa: let net_vhost_vdpa_init() returns NetClientState *net/vhost-vdpa.c+12 -70 replies
5/10net: introduce control clientinclude/net/net.h net/net.c+26 -30 replies
6/10vhost-net: control virtqueue supporthw/net/vhost_net-stub.c hw/net/vhost_net.c hw/net/virtio-net.c +1 more+40 -170 replies
7/10virtio-net: use "queue_pairs" instead of "queues" when possiblehw/net/vhost_net.c hw/net/virtio-net.c include/hw/virtio/virtio-net.h+80 -800 replies
8/10vhost: record the last virtqueue index for the virtio devicehw/net/vhost_net.c include/hw/virtio/vhost.h+11 -30 replies
9/10virtio-net: vhost control virtqueue supporthw/net/vhost_net.c hw/net/virtio-net.c include/hw/virtio/virtio-net.h+21 -50 replies
10/10vhost-vdpa: multiqueue supporthw/virtio/vhost-vdpa.c net/vhost-vdpa.c+97 -100 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchStefano Garzarella
1/10R-b
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH V5 00/10] vhost-vDPA multiqueue

Hi All:

This patch implements the multiqueue support for vhost-vDPA. The most important requirement si the control virtqueue support. The virtio-net and vhost-net core are tweak to support control virtqueue as if what data queue pairs are done: a dedicated vhost_net device which is coupled with the NetClientState is intrdouced so most of the existing vhost codes could be reused with minor changes. This means the control virtqueue will bypass the Qemu. With the control virtqueue, vhost-vDPA are extend to support creating and destroying multiqueue queue pairs plus the control virtqueue.

For the future, if we want to support live migration, we can either do shadow cvq on top or introduce new interfaces for reporting device states.

Tests are done via the vp_vdpa driver in L1 guest.

Changes since V4:
- rebase on top of Michael's pci branch

Changes since V3:
- fix build with vhost disabled

Changes since V2:
- rebase to qemu master
- use "queue_pairs" instead of "qps"
- typo fixes

Changes since V1:
- start and stop vhost devices when all queues were setup
- fix the case when driver doesn't support MQ but device support
- correctly set the batching capability to avoid a map/unmap storm
- various other tweaks

Jason Wang (10):
vhost-vdpa: open device fd in net_init_vhost_vdpa()
vhost-vdpa: classify one time request
vhost-vdpa: prepare for the multiqueue support
vhost-vdpa: let net_vhost_vdpa_init() returns NetClientState *
net: introduce control client
vhost-net: control virtqueue support
virtio-net: use "queue_pairs" instead of "queues" when possible
vhost: record the last virtqueue index for the virtio device
virtio-net: vhost control virtqueue support
vhost-vdpa: multiqueue support

 hw/net/vhost_net-stub.c        |   4 +-
 hw/net/vhost_net.c             |  55 ++++++++---
 hw/net/virtio-net.c            | 165 ++++++++++++++++++---------------
 hw/virtio/vhost-vdpa.c         |  57 ++++++++++--
 include/hw/virtio/vhost-vdpa.h |   1 +
 include/hw/virtio/vhost.h      |   2 +
 include/hw/virtio/virtio-net.h |   5 +-
 include/net/net.h              |   5 +
 include/net/vhost_net.h        |   6 +-
 net/net.c                      |  24 ++++-
 net/vhost-vdpa.c               | 127 ++++++++++++++++++++++---
 11 files changed, 331 insertions(+), 120 deletions(-)
Signature · 1 line
2.25.1