Skip to content

RFC Enable vdpa net migration with features depending on CVQ

Eugenio Pérez qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vdpa: export vhost_vdpa_set_vring_readyhw/virtio/trace-events hw/virtio/vhost-vdpa.c include/hw/virtio/vhost-vdpa.h+22 -92 replies
2/6vdpa: add should_enable opinclude/hw/virtio/vhost-vdpa.h+8 -01 reply
3/6vdpa: use virtio_ops->should_enable at vhost_vdpa_set_vrings_readyhw/virtio/vhost-vdpa.c+5 -00 replies
4/6vdpa: add stub vhost_vdpa_should_enablenet/vhost-vdpa.c+10 -00 replies
5/6vdpa: delay enable of data vqsnet/vhost-vdpa.c+24 -10 replies
6/6vdpa: remove net cvq migration blockernet/vhost-vdpa.c+0 -124 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/6] Enable vdpa net migration with features depending on CVQ

At this moment the migration of net features that depends on CVQ is not possible, as there is no reliable way to restore the device state like mac address, number of enabled queues, etc to the destination. This is mainly caused because the device must only read CVQ, and process all the commands before resuming the dataplane.

This RFC lift that requirement, sending the VHOST_VDPA_SET_VRING_ENABLE ioctl for dataplane vqs only after the device has processed all commands. If this method is valid or not, or if it must be signalled by the parent driver somehow, is still under discussion. In case it is valid, this code allows testing the vDPA device for it.

Eugenio Pérez (6):
vdpa: export vhost_vdpa_set_vring_ready
vdpa: add should_enable op
vdpa: use virtio_ops->should_enable at vhost_vdpa_set_vrings_ready
vdpa: add stub vhost_vdpa_should_enable
vdpa: delay enable of data vqs
vdpa: remove net cvq migration blocker

 include/hw/virtio/vhost-vdpa.h |  9 +++++++
 hw/virtio/vhost-vdpa.c         | 33 +++++++++++++++++++------
 net/vhost-vdpa.c               | 45 +++++++++++++++++++++++++---------
 hw/virtio/trace-events         |  2 +-
 4 files changed, 68 insertions(+), 21 deletions(-)
Signature · 1 line
2.39.3