migration/qemu-file: Add qemu_file_get_to_fd()
authorAvihai Horon <avihaih@nvidia.com>
Thu, 9 Feb 2023 19:20:35 +0000 (21:20 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 15 Feb 2023 18:09:25 +0000 (19:09 +0100)
commitc7a7db4b517842633ea5ab6c848a10449b5b913a
tree587e10e0aeccd6e35ed2f8f500e1c4e7321f4f5f
parent6a50f64ca01d0a7b97f14f069762bfd88160f31e
migration/qemu-file: Add qemu_file_get_to_fd()

Add new function qemu_file_get_to_fd() that allows reading data from
QEMUFile and writing it straight into a given fd.

This will be used later in VFIO migration code.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/qemu-file.c
migration/qemu-file.h