aboutsummaryrefslogtreecommitdiff
path: root/vl.c
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 /vl.c
parente1a3ecee3b85864932d093c3a29966779d038485 (diff)
downloadqemu-5e22479ae241965575318ec081c26c907bfc3210.zip
qemu-5e22479ae241965575318ec081c26c907bfc3210.tar.gz
qemu-5e22479ae241965575318ec081c26c907bfc3210.tar.bz2
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 'vl.c')
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 993690d..86f6c71 100644
--- a/vl.c
+++ b/vl.c
@@ -87,6 +87,7 @@ int main(int argc, char **argv)
#include "sysemu/blockdev.h"
#include "hw/block/block.h"
#include "migration/block.h"
+#include "migration/snapshot.h"
#include "sysemu/tpm.h"
#include "sysemu/dma.h"
#include "hw/audio/soundhw.h"
@@ -4722,7 +4723,7 @@ int main(int argc, char **argv, char **envp)
replay_vmstate_init();
} else if (loadvm) {
Error *local_err = NULL;
- if (load_vmstate(loadvm, &local_err) < 0) {
+ if (load_snapshot(loadvm, &local_err) < 0) {
error_report_err(local_err);
autostart = 0;
}