mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
move do_loadvm() to monitor.c
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
7b63034926
commit
c8d41b2c29
3 changed files with 11 additions and 12 deletions
11
monitor.c
11
monitor.c
|
@ -1721,6 +1721,17 @@ static void do_closefd(Monitor *mon, const char *fdname)
|
|||
fdname);
|
||||
}
|
||||
|
||||
static void do_loadvm(Monitor *mon, const char *name)
|
||||
{
|
||||
int saved_vm_running = vm_running;
|
||||
|
||||
vm_stop(0);
|
||||
|
||||
load_vmstate(mon, name);
|
||||
if (saved_vm_running)
|
||||
vm_start();
|
||||
}
|
||||
|
||||
int monitor_get_fd(Monitor *mon, const char *fdname)
|
||||
{
|
||||
mon_fd_t *monfd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue