From: Cédric Le Goater Date: Thu, 16 May 2024 12:46:58 +0000 (+0200) Subject: vfio: Also trace event failures in vfio_save_complete_precopy() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=33dc04b0722974ae140527d9c44eb442f8ac463e;p=qemu.git vfio: Also trace event failures in vfio_save_complete_precopy() vfio_save_complete_precopy() currently returns before doing the trace event. Change that. Reviewed-by: Avihai Horon Reviewed-by: Eric Auger Signed-off-by: Cédric Le Goater --- diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c index 5d91364f3b..c4403a38dd 100644 --- a/hw/vfio/migration.c +++ b/hw/vfio/migration.c @@ -589,9 +589,6 @@ static int vfio_save_complete_precopy(QEMUFile *f, void *opaque) qemu_put_be64(f, VFIO_MIG_FLAG_END_OF_STATE); ret = qemu_file_get_error(f); - if (ret) { - return ret; - } trace_vfio_save_complete_precopy(vbasedev->name, ret);