[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/20] migration: Report error in incoming migration
|
From: |
peterx |
|
Subject: |
[PULL 05/20] migration: Report error in incoming migration |
|
Date: |
Tue, 16 Jan 2024 11:19:32 +0800 |
From: Fabiano Rosas <farosas@suse.de>
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: 20240104142144.9680-5-farosas@suse.de">https://lore.kernel.org/r/20240104142144.9680-5-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
---
migration/migration.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/migration/migration.c b/migration/migration.c
index 2365a3a13c..219447dea1 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;
}
--
2.43.0
- [PULL 11/20] docs/migration: Create index page, (continued)
- [PULL 11/20] docs/migration: Create index page, peterx, 2024/01/15
- [PULL 12/20] docs/migration: Convert virtio.txt into rST, peterx, 2024/01/15
- [PULL 14/20] docs/migration: Split "Debugging" and "Firmware", peterx, 2024/01/15
- [PULL 13/20] docs/migration: Split "Backwards compatibility" separately, peterx, 2024/01/15
- [PULL 15/20] docs/migration: Split "Postcopy", peterx, 2024/01/15
- [PULL 17/20] docs/migration: Organize "Postcopy" page, peterx, 2024/01/15
- [PULL 16/20] docs/migration: Split "dirty limit", peterx, 2024/01/15
- [PULL 19/20] docs/migration: Further move virtio to be feature of migration, peterx, 2024/01/15
- [PULL 18/20] docs/migration: Further move vfio to be feature of migration, peterx, 2024/01/15
- [PULL 20/20] migration/rdma: define htonll/ntohll only if not predefined, peterx, 2024/01/15
- [PULL 05/20] migration: Report error in incoming migration,
peterx <=
- Re: [PULL 00/20] Migration 20240116 patches, Peter Maydell, 2024/01/16