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 /migration | |
parent | e1a3ecee3b85864932d093c3a29966779d038485 (diff) | |
download | qemu-5e22479ae241965575318ec081c26c907bfc3210.zip |
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 'migration')
-rw-r--r-- | migration/savevm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/migration/savevm.c b/migration/savevm.c index bb3f9ec1dd..f2664f37a0 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -35,6 +35,7 @@ #include "sysemu/sysemu.h" #include "qemu/timer.h" #include "migration/migration.h" +#include "migration/snapshot.h" #include "qemu-file-channel.h" #include "qemu-file.h" #include "savevm.h" @@ -2067,7 +2068,7 @@ int qemu_loadvm_state(QEMUFile *f) return ret; } -int save_vmstate(const char *name, Error **errp) +int save_snapshot(const char *name, Error **errp) { BlockDriverState *bs, *bs1; QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1; @@ -2224,7 +2225,7 @@ void qmp_xen_load_devices_state(const char *filename, Error **errp) migration_incoming_state_destroy(); } -int load_vmstate(const char *name, Error **errp) +int load_snapshot(const char *name, Error **errp) { BlockDriverState *bs, *bs_vm_state; QEMUSnapshotInfo sn; |