qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Enable vdpa net migration with features depending on CVQ
@ 2023-08-10 15:36 Eugenio Pérez
  2023-08-10 15:36 ` [PATCH v2 1/5] vdpa: use first queue SVQ state for CVQ default Eugenio Pérez
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Eugenio Pérez @ 2023-08-10 15:36 UTC (permalink / raw)
  To: qemu-devel
  Cc: Laurent Vivier, Dragos Tatulea, si-wei.liu, Parav Pandit,
	Gautam Dawar, Zhu Lingshan, Michael S. Tsirkin, Cindy Lu,
	Harpreet Singh Anand, Stefano Garzarella, Jason Wang,
	Hawkins Jiawei, Shannon Nelson, Lei Yang

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 series lift that requirement, sending the VHOST_VDPA_SET_VRING_ENABLE
ioctl for dataplane vqs only after the device has processed all commands.
---
From v1:
* Factor out VRING_ENABLE ioctls from vhost_vdpa_dev_start to the caller,
  instead of providing a callback to know if it must be called or not.
* at https://lists.nongnu.org/archive/html/qemu-devel/2023-07/msg05447.html

From FRC:
* Enable vqs early in case CVQ cannot be shadowed.
* at https://lists.gnu.org/archive/html/qemu-devel/2023-07/msg01325.html

Eugenio Pérez (5):
  vdpa: use first queue SVQ state for CVQ default
  vdpa: export vhost_vdpa_set_vring_ready
  vdpa: rename vhost_vdpa_net_load to vhost_vdpa_net_cvq_load
  vdpa: move vhost_vdpa_set_vrings_ready to the caller
  vdpa: remove net cvq migration blocker

 include/hw/virtio/vhost-vdpa.h |  1 +
 hw/virtio/vdpa-dev.c           |  3 ++
 hw/virtio/vhost-vdpa.c         | 22 +++++-----
 net/vhost-vdpa.c               | 75 +++++++++++++++++++---------------
 hw/virtio/trace-events         |  2 +-
 5 files changed, 57 insertions(+), 46 deletions(-)

-- 
2.39.3




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

end of thread, other threads:[~2023-08-22  8:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10 15:36 [PATCH v2 0/5] Enable vdpa net migration with features depending on CVQ Eugenio Pérez
2023-08-10 15:36 ` [PATCH v2 1/5] vdpa: use first queue SVQ state for CVQ default Eugenio Pérez
2023-08-14  6:57   ` Jason Wang
2023-08-10 15:36 ` [PATCH v2 2/5] vdpa: export vhost_vdpa_set_vring_ready Eugenio Pérez
2023-08-14  6:57   ` Jason Wang
2023-08-10 15:36 ` [PATCH v2 3/5] vdpa: rename vhost_vdpa_net_load to vhost_vdpa_net_cvq_load Eugenio Pérez
2023-08-14  6:57   ` Jason Wang
2023-08-10 15:36 ` [PATCH v2 4/5] vdpa: move vhost_vdpa_set_vrings_ready to the caller Eugenio Pérez
2023-08-14  6:56   ` Jason Wang
2023-08-17  5:41     ` Eugenio Perez Martin
2023-08-22  8:08     ` Eugenio Perez Martin
2023-08-22  8:36       ` Jason Wang
2023-08-10 15:36 ` [PATCH v2 5/5] vdpa: remove net cvq migration blocker Eugenio Pérez
2023-08-14  6:58   ` Jason Wang

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