summaryrefslogtreecommitdiff
path: root/migration.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-06-26 18:46:10 +0200
committerJuan Quintela <quintela@redhat.com>2012-07-20 08:19:27 +0200
commit7908c78d3e1a117ae6b9545e601409eee3d33863 (patch)
tree6b58bdcf72b13c958459ae6df46427c1a14c66d1 /migration.h
parent22ea40f4ff072a113fdf96bff10bc81ee063da32 (diff)
downloadqemu-7908c78d3e1a117ae6b9545e601409eee3d33863.zip
savevm: Live migration handlers register the struct directly
Notice that the live migration users never unregister, so no problem about freeing the ops structure. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.h')
-rw-r--r--migration.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/migration.h b/migration.h
index de13004573..57572a61e9 100644
--- a/migration.h
+++ b/migration.h
@@ -18,6 +18,7 @@
#include "qemu-common.h"
#include "notify.h"
#include "error.h"
+#include "vmstate.h"
struct MigrationParams {
bool blk;
@@ -81,8 +82,7 @@ uint64_t ram_bytes_remaining(void);
uint64_t ram_bytes_transferred(void);
uint64_t ram_bytes_total(void);
-int ram_save_live(QEMUFile *f, int stage, void *opaque);
-int ram_load(QEMUFile *f, void *opaque, int version_id);
+extern SaveVMHandlers savevm_ram_handlers;
/**
* @migrate_add_blocker - prevent migration from proceeding