]> Git Repo - qemu.git/blobdiff - replay/replay-snapshot.c
migration: Make compression_threads use save/load_setup/cleanup()
[qemu.git] / replay / replay-snapshot.c
index 8cced4604f08bef81513d5693125695fea3be95d..a4ded2956d0a0fae0440eafbe0d1a79e39938bf5 100644 (file)
@@ -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)
 {
@@ -62,14 +63,18 @@ void replay_vmstate_register(void)
 
 void replay_vmstate_init(void)
 {
+    Error *err = NULL;
+
     if (replay_snapshot) {
         if (replay_mode == REPLAY_MODE_RECORD) {
-            if (save_vmstate(replay_snapshot) != 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) != 0) {
+            if (load_snapshot(replay_snapshot, &err) != 0) {
+                error_report_err(err);
                 error_report("Could not load snapshot for icount replay");
                 exit(1);
             }
This page took 0.020685 seconds and 4 git commands to generate.