aboutsummaryrefslogtreecommitdiff
path: root/replay
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2017-04-20 14:25:55 +0200
committerJuan Quintela <quintela@redhat.com>2017-06-01 18:49:23 +0200
commit5e22479ae241965575318ec081c26c907bfc3210 (patch)
treed68d90869196e5807acdc1ef27bd965b86928baa /replay
parente1a3ecee3b85864932d093c3a29966779d038485 (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 'replay')
-rw-r--r--replay/replay-snapshot.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c
index c75cd38ece..a4ded2956d 100644
--- a/replay/replay-snapshot.c
+++ b/replay/replay-snapshot.c
@@ -19,6 +19,7 @@
#include "qapi/qmp/qstring.h"
#include "qemu/error-report.h"
#include "migration/vmstate.h"
+#include "migration/snapshot.h"
static void replay_pre_save(void *opaque)
{
@@ -66,13 +67,13 @@ void replay_vmstate_init(void)
if (replay_snapshot) {
if (replay_mode == REPLAY_MODE_RECORD) {
- if (save_vmstate(replay_snapshot, &err) != 0) {
+ if (save_snapshot(replay_snapshot, &err) != 0) {
error_report_err(err);
error_report("Could not create snapshot for icount record");
exit(1);
}
} else if (replay_mode == REPLAY_MODE_PLAY) {
- if (load_vmstate(replay_snapshot, &err) != 0) {
+ if (load_snapshot(replay_snapshot, &err) != 0) {
error_report_err(err);
error_report("Could not load snapshot for icount replay");
exit(1);