qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] vhost-user-blk: support inflight migration
@ 2025-10-20  5:44 Alexandr Moshkov
  2025-10-20  5:44 ` [PATCH 1/2] vhost: support inflight save/load Alexandr Moshkov
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Alexandr Moshkov @ 2025-10-20  5:44 UTC (permalink / raw)
  To: qemu-devel
  Cc: Raphael Norwitz, Michael S. Tsirkin, Stefano Garzarella,
	Kevin Wolf, Hanna Reitz, Peter Xu, Fabiano Rosas, Eric Blake,
	Markus Armbruster, Alexandr Moshkov

Hi!

During inter-host migration, waiting for disk requests to be drained
in the vhost-user backend can incur significant downtime.

This can be avoided if QEMU migrates the inflight region in vhost-user-blk. 
Thus, during the qemu migration, the vhost-user backend can cancel all inflight requests and
then, after migration, they will be executed on another host. 

At first, I tried to implement migration for all vhost-user devices that support inflight at once, 
but this would require a lot of changes both in vhost-user-blk (to transfer it to the base class) and 
in the vhost-user-base base class (inflight implementation and remodeling + a large refactor).

Therefore, for now I decided to leave this idea for later and 
implement the migration of the inflight region first for vhost-user-blk.

Alexandr Moshkov (2):
  vhost: support inflight save/load
  vhost-user-blk: support inflight migration

 hw/block/vhost-user-blk.c | 52 ++++++++++++++++++++++++++++++++++++
 hw/virtio/vhost.c         | 56 +++++++++++++++++++++++++++++++++++++++
 include/hw/virtio/vhost.h |  2 ++
 migration/options.c       |  7 +++++
 migration/options.h       |  1 +
 qapi/migration.json       |  9 +++++--
 6 files changed, 125 insertions(+), 2 deletions(-)

-- 
2.34.1



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

end of thread, other threads:[~2025-10-25 14:20 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-20  5:44 [PATCH 0/2] vhost-user-blk: support inflight migration Alexandr Moshkov
2025-10-20  5:44 ` [PATCH 1/2] vhost: support inflight save/load Alexandr Moshkov
2025-10-21 19:29   ` Peter Xu
2025-10-23  6:46     ` Alexandr Moshkov
2025-10-20  5:44 ` [PATCH 2/2] vhost-user-blk: support inflight migration Alexandr Moshkov
2025-10-20  9:55   ` Markus Armbruster
2025-10-20 10:34     ` Alexandr Moshkov
2025-10-20 11:47       ` Markus Armbruster
2025-10-23 19:24         ` Peter Xu
2025-10-24  8:42           ` Alexandr Moshkov
2025-10-23 14:29   ` Lei Yang
2025-10-24  8:37     ` Alexandr Moshkov
2025-10-25 14:19       ` Lei Yang
2025-10-20  9:55 ` [PATCH 0/2] " Markus Armbruster
2025-10-20 10:16   ` Alexandr Moshkov
2025-10-21 18:54 ` Raphael Norwitz
2025-10-22  7:59   ` Alexandr Moshkov
2025-10-22 21:33     ` Raphael Norwitz
2025-10-23  6:44       ` Alexandr Moshkov
2025-10-23 17:53         ` Raphael Norwitz

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