mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
savevm: Fix -loadvm to report errors to stderr, not the monitor
A monitor may not even exist. Change load_vmstate() to use qemu_error() instead of monitor_printf(). Parameter mon is now unused, remove it.
This commit is contained in:
parent
4491e0f398
commit
03cd4655cb
4 changed files with 14 additions and 16 deletions
|
@ -2533,7 +2533,7 @@ static void do_loadvm(Monitor *mon, const QDict *qdict)
|
|||
|
||||
vm_stop(0);
|
||||
|
||||
if (load_vmstate(mon, name) >= 0 && saved_vm_running)
|
||||
if (load_vmstate(name) >= 0 && saved_vm_running)
|
||||
vm_start();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue