]> git.proxmox.com Git - mirror_qemu.git/commit
vfio/migration: Refactor vfio_save_block() to return saved data size
authorAvihai Horon <avihaih@nvidia.com>
Wed, 21 Jun 2023 11:11:58 +0000 (14:11 +0300)
committerCédric Le Goater <clg@redhat.com>
Fri, 30 Jun 2023 04:02:51 +0000 (06:02 +0200)
commitcf53efbbda2e45aad2f54b797f2ebfa001aad629
tree3ac1e41533d4a09de52f107c6c33ab07c42b0081
parent7e6a5c730be49bd113a552cd2c4e4b91abfdd4fb
vfio/migration: Refactor vfio_save_block() to return saved data size

Refactor vfio_save_block() to return the size of saved data on success
and -errno on error.

This will be used in next patch to implement VFIO migration pre-copy
support.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Tested-by: YangHang Liu <yanghliu@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/migration.c