migration: Check migration error after loadvm
authorFabiano Rosas <farosas@suse.de>
Wed, 5 Feb 2025 16:23:55 +0000 (13:23 -0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Feb 2025 18:19:04 +0000 (15:19 -0300)
commite0ad300fe1a0e0b12b90994bab6e4df77dd1ee8a
treec3671a94999710d69473a4c671949438fe0d9a9f
parent9b3b192f65b1cf635719a2981dd2d4b70892d2ec
migration: Check migration error after loadvm

We're currently only checking the QEMUFile error after
qemu_loadvm_state(). This was causing a TLS termination error from
multifd recv threads to be ignored.

Start checking the migration error as well to avoid missing further
errors.

Regarding compatibility concerning the TLS termination error that was
being ignored, for QEMUs <= 9.2 - if the old QEMU is being used as
migration source - the recently added migration property
multifd-tls-clean-termination needs to be set to OFF in the
*destination* machine.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/savevm.c