public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
* [PATCH 0/4] vhost-user-blk: fix compatibility with older qemu versions
@ 2026-02-24  7:50 Alexandr Moshkov
  2026-02-24  7:50 ` [PATCH 1/4] vhost-user.rst: fix typo Alexandr Moshkov
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Alexandr Moshkov @ 2026-02-24  7:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Raphael Norwitz, virtio-fs, Milan Zamazal, Stefan Hajnoczi,
	Michael S. Tsirkin, Jason Wang, zhenwei pi, Gonglei (Arei),
	Pierrick Bouvier, Kevin Wolf, Hanna Reitz, Alex Bennée,
	Paolo Bonzini, Stefano Garzarella, Fam Zheng, qemu-block,
	Alexandr Moshkov

This is a small continuation of my series about inflight migration for vhost-user-blk.

This series is designed to solve the problem of compatibility with older versions of qemu, where this feature has not yet been introduced (for example, if we want to downgrade versions due to some problems).

In the current version for vhost-user-blk, this feature is enabled using the parameter and further migration of the inflight region will depend on whether the vhost-user has accepted the new protocol feature or not. This creates an inconvenient dependency, because there is no way to disable this feature without reconnecting to the backend.
This series slightly changes the semantics of the introduced protocol feature VHOST_USER_PROTOCOL_F_GET_VRING_BASE_INFLIGHT. Enabling this feature adds a new parameter for GET_VRING_BASE message - skip_drain, which allows to control drain in-flight requests on the backend.

Thus, user can enable or disable inflight-migration param for vhost-user-blk to maintain compatibility with older versions of QEMU.

Alexandr Moshkov (4):
  vhost-user.rst: fix typo
  vhost-user: add skip_drain param to GET_VRING_BASE
  vhost-user: remove supports_inflight_migration
  vhost-user-blk: make inflight migration throught skip_drain

 backends/cryptodev-vhost.c     |  2 +-
 backends/vhost-user.c          |  2 +-
 docs/interop/vhost-user.rst    |  5 +++--
 hw/block/vhost-user-blk.c      | 26 ++++++++++++++------------
 hw/net/vhost_net.c             |  9 +++++----
 hw/scsi/vhost-scsi-common.c    |  2 +-
 hw/virtio/vdpa-dev.c           |  2 +-
 hw/virtio/vhost-user-base.c    |  2 +-
 hw/virtio/vhost-user-fs.c      |  2 +-
 hw/virtio/vhost-user-scmi.c    |  2 +-
 hw/virtio/vhost-user.c         |  3 +--
 hw/virtio/vhost-vsock-common.c |  2 +-
 hw/virtio/vhost.c              | 24 +++++++++++++++---------
 include/hw/virtio/vhost-user.h |  1 -
 include/hw/virtio/vhost.h      |  7 +++++--
 15 files changed, 51 insertions(+), 40 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2026-03-05  9:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-24  7:50 [PATCH 0/4] vhost-user-blk: fix compatibility with older qemu versions Alexandr Moshkov
2026-02-24  7:50 ` [PATCH 1/4] vhost-user.rst: fix typo Alexandr Moshkov
2026-02-25 13:05   ` Stefan Hajnoczi
2026-02-24  7:50 ` [PATCH 2/4] vhost-user: add skip_drain param to GET_VRING_BASE Alexandr Moshkov
2026-03-01 23:34   ` Stefan Hajnoczi
2026-03-02  7:12     ` Alexandr Moshkov
2026-03-03  8:45       ` Vladimir Sementsov-Ogievskiy
2026-03-05  9:26   ` Vladimir Sementsov-Ogievskiy
2026-02-24  7:50 ` [PATCH 3/4] vhost-user: remove supports_inflight_migration Alexandr Moshkov
2026-02-24  7:50 ` [PATCH 4/4] vhost-user-blk: make inflight migration throught skip_drain Alexandr Moshkov
2026-03-05  9:45   ` Vladimir Sementsov-Ogievskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox