migration/qemu-file: add utility methods for working with seekable channels
authorFabiano Rosas <farosas@suse.de>
Thu, 29 Feb 2024 15:30:00 +0000 (12:30 -0300)
committerPeter Xu <peterx@redhat.com>
Fri, 1 Mar 2024 07:42:04 +0000 (15:42 +0800)
commit7f5b50a40181bd75c1f74aeaa7fe94fe10680720
tree2c786f532a3c0a63c668465795dce28fa331c5cb
parentc05dfcb7f2c5e39fc47c347de305df4e6afb4fa9
migration/qemu-file: add utility methods for working with seekable channels

Add utility methods that will be needed when implementing 'mapped-ram'
migration capability.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: "Daniel P. Berrangé" <berrange@redhat.com>
Link: https://lore.kernel.org/r/20240229153017.2221-7-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
include/migration/qemu-file-types.h
migration/qemu-file.c
migration/qemu-file.h