diff options
-rw-r--r-- | monitor.c | 11 | ||||
-rw-r--r-- | savevm.c | 11 | ||||
-rw-r--r-- | sysemu.h | 1 |
3 files changed, 11 insertions, 12 deletions
@@ -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; @@ -1239,17 +1239,6 @@ void load_vmstate(Monitor *mon, const char *name) } } -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(); -} - void do_delvm(Monitor *mon, const char *name) { DriveInfo *dinfo; @@ -51,7 +51,6 @@ extern qemu_irq qemu_system_powerdown; void qemu_system_reset(void); void do_savevm(Monitor *mon, const char *name); -void do_loadvm(Monitor *mon, const char *name); void load_vmstate(Monitor *mon, const char *name); void do_delvm(Monitor *mon, const char *name); void do_info_snapshots(Monitor *mon); |