mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
migration: Pass Error ** argument to {save,load}_vmstate
This way we use the "normal" way of printing errors for hmp commands. Signed-off-by: Juan Quintela <quintela@redhat.com> Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com>
This commit is contained in:
parent
2bf3aa85f0
commit
927d663819
5 changed files with 43 additions and 33 deletions
4
vl.c
4
vl.c
|
@ -4701,7 +4701,9 @@ int main(int argc, char **argv, char **envp)
|
|||
if (replay_mode != REPLAY_MODE_NONE) {
|
||||
replay_vmstate_init();
|
||||
} else if (loadvm) {
|
||||
if (load_vmstate(loadvm) < 0) {
|
||||
Error *local_err = NULL;
|
||||
if (load_vmstate(loadvm, &local_err) < 0) {
|
||||
error_report_err(local_err);
|
||||
autostart = 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue