]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: add FEATURE_SEEKABLE to QIOChannelBlock
authorMarco Cavenati <Marco.Cavenati@eurecom.fr>
Fri, 10 Oct 2025 11:59:53 +0000 (13:59 +0200)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:09 +0000 (16:04 -0500)
commit04a191cb36e71f4bb44d28af2b56b9624b36b0a1
treec6ca978c0d04eaea6671cf44193833a7b6a40aab
parente5423828d69e90a8fc9db90d8a0d7cf916370fe0
migration: add FEATURE_SEEKABLE to QIOChannelBlock

Enable the use of the mapped-ram migration feature with savevm/loadvm
snapshots by adding the QIO_CHANNEL_FEATURE_SEEKABLE feature to
QIOChannelBlock. Implement io_preadv and io_pwritev methods to provide
positioned I/O capabilities that don't modify the channel's position
pointer.

Signed-off-by: Marco Cavenati <Marco.Cavenati@eurecom.fr>
Link: https://lore.kernel.org/r/20251010115954.1995298-2-Marco.Cavenati@eurecom.fr
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/channel-block.c