mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
make load_vmstate() return errors
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
c8d41b2c29
commit
05f2401eb2
4 changed files with 14 additions and 10 deletions
|
@ -1727,8 +1727,7 @@ static void do_loadvm(Monitor *mon, const char *name)
|
|||
|
||||
vm_stop(0);
|
||||
|
||||
load_vmstate(mon, name);
|
||||
if (saved_vm_running)
|
||||
if (load_vmstate(mon, name) >= 0 && saved_vm_running)
|
||||
vm_start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue