mirror of https://github.com/xemu-project/xemu.git
migration: Register global state section before loadvm
Otherwise, it is not found Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
72e72e1a71
commit
48212d87d6
2
vl.c
2
vl.c
|
@ -4615,6 +4615,7 @@ int main(int argc, char **argv, char **envp)
|
||||||
}
|
}
|
||||||
|
|
||||||
qemu_system_reset(VMRESET_SILENT);
|
qemu_system_reset(VMRESET_SILENT);
|
||||||
|
register_global_state();
|
||||||
if (loadvm) {
|
if (loadvm) {
|
||||||
if (load_vmstate(loadvm) < 0) {
|
if (load_vmstate(loadvm) < 0) {
|
||||||
autostart = 0;
|
autostart = 0;
|
||||||
|
@ -4628,7 +4629,6 @@ int main(int argc, char **argv, char **envp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
register_global_state();
|
|
||||||
if (incoming) {
|
if (incoming) {
|
||||||
Error *local_err = NULL;
|
Error *local_err = NULL;
|
||||||
qemu_start_incoming_migration(incoming, &local_err);
|
qemu_start_incoming_migration(incoming, &local_err);
|
||||||
|
|
Loading…
Reference in New Issue