aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2024-05-16 14:46:58 +0200
committerCédric Le Goater <clg@redhat.com>2024-05-16 16:59:19 +0200
commit33dc04b0722974ae140527d9c44eb442f8ac463e (patch)
tree224d64ec7ab73c5425b3f446812fdd0e195439e0 /hw
parent2da5f9e4d86c1a6cf5ff35cdb7b87e993e947fe0 (diff)
downloadqemu-33dc04b0722974ae140527d9c44eb442f8ac463e.zip
qemu-33dc04b0722974ae140527d9c44eb442f8ac463e.tar.gz
qemu-33dc04b0722974ae140527d9c44eb442f8ac463e.tar.bz2
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 <avihaih@nvidia.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/vfio/migration.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c
index 5d91364..c4403a3 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);