migration: Extend migration_file_set_error() with Error* argument
commit019d9e6cc408f402dd27d6884ac7b742e0e4f99e
authorCédric Le Goater <clg@redhat.com>
Thu, 16 May 2024 12:46:52 +0000 (16 14:46 +0200)
committerCédric Le Goater <clg@redhat.com>
Thu, 16 May 2024 14:59:19 +0000 (16 16:59 +0200)
tree1006fea58cb7cb34daf970a45c4363c88615a20e
parent0f21358f33f0b9aa1b8dd5e33de92118186999db
migration: Extend migration_file_set_error() with Error* argument

Use it to update the current error of the migration stream if
available and if not, simply print out the error. Next changes will
update with an error to report.

Reviewed-by: Avihai Horon <avihaih@nvidia.com>
Acked-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c
hw/vfio/migration.c
include/migration/misc.h
migration/migration.c