diff options
author | Juan Quintela <quintela@redhat.com> | 2017-04-20 14:25:55 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-06-01 18:49:23 +0200 |
commit | 5e22479ae241965575318ec081c26c907bfc3210 (patch) | |
tree | d68d90869196e5807acdc1ef27bd965b86928baa /hmp.c | |
parent | e1a3ecee3b85864932d093c3a29966779d038485 (diff) |
migration: Create include for migration snapshots
Start removing migration code from sysemu/sysemu.h.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r-- | hmp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -42,6 +42,7 @@ #include "qemu/error-report.h" #include "exec/ramlist.h" #include "hw/intc/intc.h" +#include "migration/snapshot.h" #ifdef CONFIG_SPICE #include <spice/enums.h> @@ -1284,7 +1285,7 @@ void hmp_loadvm(Monitor *mon, const QDict *qdict) vm_stop(RUN_STATE_RESTORE_VM); - if (load_vmstate(name, &err) == 0 && saved_vm_running) { + if (load_snapshot(name, &err) == 0 && saved_vm_running) { vm_start(); } hmp_handle_error(mon, &err); @@ -1294,7 +1295,7 @@ void hmp_savevm(Monitor *mon, const QDict *qdict) { Error *err = NULL; - save_vmstate(qdict_get_try_str(qdict, "name"), &err); + save_snapshot(qdict_get_try_str(qdict, "name"), &err); hmp_handle_error(mon, &err); } |