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 /vl.c | |
parent | e1a3ecee3b85864932d093c3a29966779d038485 (diff) | |
download | qemu-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |