From 52b262051209bcf6064ca3a8bc8dbe0c04a6960d Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Tue, 18 Apr 2017 11:40:56 +0200 Subject: monitor: Move hmp_loadvm from monitor.c to hmp.c We are going to move the rest of hmp snapshots functions there instead of monitor.c. Signed-off-by: Juan Quintela Reviewed-by: Laurent Vivier Reviewed-by: Dr. David Alan Gilbert --- monitor.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index 62c9f81..ce11029 100644 --- a/monitor.c +++ b/monitor.c @@ -37,7 +37,6 @@ #include "net/slirp.h" #include "sysemu/char.h" #include "ui/qemu-spice.h" -#include "sysemu/sysemu.h" #include "sysemu/numa.h" #include "monitor/monitor.h" #include "qemu/config-file.h" @@ -1954,18 +1953,6 @@ void qmp_closefd(const char *fdname, Error **errp) error_setg(errp, QERR_FD_NOT_FOUND, fdname); } -static void hmp_loadvm(Monitor *mon, const QDict *qdict) -{ - int saved_vm_running = runstate_is_running(); - const char *name = qdict_get_str(qdict, "name"); - - vm_stop(RUN_STATE_RESTORE_VM); - - if (load_vmstate(name) == 0 && saved_vm_running) { - vm_start(); - } -} - int monitor_get_fd(Monitor *mon, const char *fdname, Error **errp) { mon_fd_t *monfd; -- cgit v1.1