]> git.ipfire.org Git - thirdparty/qemu.git/commit
io: implement io_pwritev/preadv for QIOChannelFile
authorNikolay Borisov <nborisov@suse.com>
Thu, 29 Feb 2024 15:29:58 +0000 (12:29 -0300)
committerPeter Xu <peterx@redhat.com>
Fri, 1 Mar 2024 07:42:04 +0000 (15:42 +0800)
commit0478b030fa2530cbbfc4d6432e8e39a16d06865b
tree976415d0cb25f24dd9883ab36186aaa8b32c78f4
parentf1cfe39418a837e8dd52a7e75331f1606949deff
io: implement io_pwritev/preadv for QIOChannelFile

The upcoming 'mapped-ram' feature will require qemu to write data to
(and restore from) specific offsets of the migration file.

Add a minimal implementation of pwritev/preadv and expose them via the
io_pwritev and io_preadv interfaces.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240229153017.2221-5-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
io/channel-file.c