|
@@ -35,6 +35,7 @@
|
|
#include "sysemu/sysemu.h"
|
|
#include "sysemu/sysemu.h"
|
|
#include "qemu/timer.h"
|
|
#include "qemu/timer.h"
|
|
#include "migration/migration.h"
|
|
#include "migration/migration.h"
|
|
|
|
+#include "migration/snapshot.h"
|
|
#include "qemu-file-channel.h"
|
|
#include "qemu-file-channel.h"
|
|
#include "qemu-file.h"
|
|
#include "qemu-file.h"
|
|
#include "savevm.h"
|
|
#include "savevm.h"
|
|
@@ -2067,7 +2068,7 @@ int qemu_loadvm_state(QEMUFile *f)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-int save_vmstate(const char *name, Error **errp)
|
|
|
|
|
|
+int save_snapshot(const char *name, Error **errp)
|
|
{
|
|
{
|
|
BlockDriverState *bs, *bs1;
|
|
BlockDriverState *bs, *bs1;
|
|
QEMUSnapshotInfo sn1, *sn = &sn1, old_sn1, *old_sn = &old_sn1;
|
|
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();
|
|
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;
|
|
BlockDriverState *bs, *bs_vm_state;
|
|
QEMUSnapshotInfo sn;
|
|
QEMUSnapshotInfo sn;
|