[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 14/17] vl.c: Create late backends before migration object
From: |
Juan Quintela |
Subject: |
[PULL 14/17] vl.c: Create late backends before migration object |
Date: |
Mon, 24 Apr 2023 13:01:16 +0200 |
From: Peter Xu <peterx@redhat.com>
The migration object may want to check against different types of memory
when initialized. Delay the creation to be after late backends.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
softmmu/vl.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 5cb72a56fc..fb6c221e8e 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -3583,14 +3583,19 @@ void qemu_init(int argc, char **argv)
machine_class->name, machine_class->deprecation_reason);
}
+ /*
+ * Create backends before creating migration objects, so that it can
+ * check against compatibilities on the backend memories (e.g. postcopy
+ * over memory-backend-file objects).
+ */
+ qemu_create_late_backends();
+
/*
* Note: creates a QOM object, must run only after global and
* compat properties have been set up.
*/
migration_object_init();
- qemu_create_late_backends();
-
/* parse features once if machine provides default cpu_type */
current_machine->cpu_type = machine_class->default_cpu_type;
if (cpu_option) {
--
2.39.2
- [PULL 05/17] migration: Make dirty_sync_missed_zero_copy atomic, (continued)
- [PULL 05/17] migration: Make dirty_sync_missed_zero_copy atomic, Juan Quintela, 2023/04/24
- [PULL 12/17] migration: Handle block device inactivation failures better, Juan Quintela, 2023/04/24
- [PULL 01/17] migration: remove extra whitespace character for code style, Juan Quintela, 2023/04/24
- [PULL 09/17] migration: Make postcopy_requests atomic, Juan Quintela, 2023/04/24
- [PULL 08/17] migration: Make dirty_sync_count atomic, Juan Quintela, 2023/04/24
- [PULL 13/17] util/mmap-alloc: qemu_fd_getfs(), Juan Quintela, 2023/04/24
- [PULL 10/17] migration: Rename duplicate to zero_pages, Juan Quintela, 2023/04/24
- [PULL 04/17] migration: Make multifd_bytes atomic, Juan Quintela, 2023/04/24
- [PULL 11/17] migration: Rename normal to normal_pages, Juan Quintela, 2023/04/24
- [PULL 15/17] migration/postcopy: Detect file system on dest host, Juan Quintela, 2023/04/24
- [PULL 14/17] vl.c: Create late backends before migration object,
Juan Quintela <=
- [PULL 17/17] migration: Pass migrate_caps_check() the old and new caps, Juan Quintela, 2023/04/24
- [PULL 16/17] migration: rename enabled_capabilities to capabilities, Juan Quintela, 2023/04/24
- Re: [PULL 00/17] Migration 20230420 patches, Richard Henderson, 2023/04/24