aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2015-07-10 14:51:58 +0200
committerJuan Quintela <quintela@redhat.com>2015-07-15 09:07:54 +0200
commit48212d87d6655b029231d830a77983c21552fe49 (patch)
tree295c7f8d0a8892c0ca1842ca9a3e04297aea0d91
parent72e72e1a71e5e67a11204606a5c09f6cc3089a53 (diff)
migration: Register global state section before loadvm
Otherwise, it is not found Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 3f269dc58d..5856396d46 100644
--- a/vl.c
+++ b/vl.c
@@ -4615,6 +4615,7 @@ int main(int argc, char **argv, char **envp)
}
qemu_system_reset(VMRESET_SILENT);
+ register_global_state();
if (loadvm) {
if (load_vmstate(loadvm) < 0) {
autostart = 0;
@@ -4628,7 +4629,6 @@ int main(int argc, char **argv, char **envp)
return 0;
}
- register_global_state();
if (incoming) {
Error *local_err = NULL;
qemu_start_incoming_migration(incoming, &local_err);