From: Alexandr Moshkov <dtalexundeer@yandex-team.ru>
To: qemu-devel@nongnu.org
Cc: virtio-fs@lists.linux.dev, "zhenwei pi" <zhenwei.pi@linux.dev>,
"Hanna Reitz" <hreitz@redhat.com>,
"yc-core@yandex-team.ru" <yc-core@yandex-team.ru>,
"Gonglei (Arei)" <arei.gonglei@huawei.com>,
"Raphael Norwitz" <rnorwitz@nvidia.com>,
"Milan Zamazal" <mzamazal@redhat.com>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
qemu-block@nongnu.org,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Stefano Garzarella" <sgarzare@redhat.com>,
"Fam Zheng" <fam@euphon.net>, "Kevin Wolf" <kwolf@redhat.com>,
"Alexandr Moshkov" <dtalexundeer@yandex-team.ru>
Subject: [PATCH v2 0/4] vhost-user-blk: fix compatibility with older qemu versions
Date: Wed, 11 Mar 2026 13:47:24 +0500 [thread overview]
Message-ID: <20260311084728.751169-1-dtalexundeer@yandex-team.ru> (raw)
v1 -> v2:
- reorganize commits: make refactor commits first, then core semantic change
- add additional pre_save check for inflight migration possibility
---
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 do_vhost_virtqueue_stop
vhost-user-blk: move inflight_needed higher
vhost-user: add skip_drain param to GET_VRING_BASE
backends/cryptodev-vhost.c | 2 +-
backends/vhost-user.c | 2 +-
docs/interop/vhost-user.rst | 8 +++-----
hw/block/vhost-user-blk.c | 32 +++++++++++++++++++++++++-------
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, 62 insertions(+), 38 deletions(-)
--
2.34.1
next reply other threads:[~2026-03-11 8:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-11 8:47 Alexandr Moshkov [this message]
2026-03-11 8:47 ` [PATCH v2 1/4] vhost-user.rst: fix typo Alexandr Moshkov
2026-03-24 15:09 ` Vladimir Sementsov-Ogievskiy
2026-03-11 8:47 ` [PATCH v2 2/4] vhost-user: add skip_drain param to do_vhost_virtqueue_stop Alexandr Moshkov
2026-03-24 15:09 ` Vladimir Sementsov-Ogievskiy
2026-03-11 8:47 ` [PATCH v2 3/4] vhost-user-blk: move inflight_needed higher Alexandr Moshkov
2026-03-24 15:10 ` Vladimir Sementsov-Ogievskiy
2026-03-11 8:47 ` [PATCH v2 4/4] vhost-user: add skip_drain param to GET_VRING_BASE Alexandr Moshkov
2026-03-24 15:25 ` Vladimir Sementsov-Ogievskiy
2026-03-23 7:41 ` [PATCH v2 0/4] vhost-user-blk: fix compatibility with older qemu versions Alexandr Moshkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260311084728.751169-1-dtalexundeer@yandex-team.ru \
--to=dtalexundeer@yandex-team.ru \
--cc=alex.bennee@linaro.org \
--cc=arei.gonglei@huawei.com \
--cc=fam@euphon.net \
--cc=hreitz@redhat.com \
--cc=jasowang@redhat.com \
--cc=kwolf@redhat.com \
--cc=mst@redhat.com \
--cc=mzamazal@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rnorwitz@nvidia.com \
--cc=sgarzare@redhat.com \
--cc=stefanha@redhat.com \
--cc=virtio-fs@lists.linux.dev \
--cc=yc-core@yandex-team.ru \
--cc=zhenwei.pi@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox