diff options
author | Fabiano Rosas <farosas@suse.de> | 2024-01-04 11:21:41 -0300 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-01-16 11:16:09 +0800 |
commit | e3b8ad5c13714cca5e3fc1445472171fbcd469bc (patch) | |
tree | a762f034d02cf5b7b56539cd890bad7b9cb5571f | |
parent | 6074f81625800743e4c374aecf7dd30774aaf6e0 (diff) | |
download | qemu-e3b8ad5c13714cca5e3fc1445472171fbcd469bc.zip qemu-e3b8ad5c13714cca5e3fc1445472171fbcd469bc.tar.gz qemu-e3b8ad5c13714cca5e3fc1445472171fbcd469bc.tar.bz2 |
migration: Report error in incoming migration
We're not currently reporting the errors set with migrate_set_error()
when incoming migration fails.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/20240104142144.9680-5-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
-rw-r--r-- | migration/migration.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c index 2365a3a..219447d 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -697,6 +697,13 @@ process_incoming_migration_co(void *opaque) } if (ret < 0) { + MigrationState *s = migrate_get_current(); + + if (migrate_has_error(s)) { + WITH_QEMU_LOCK_GUARD(&s->error_mutex) { + error_report_err(s->error); + } + } error_report("load of migration failed: %s", strerror(-ret)); goto fail; } |