aboutsummaryrefslogtreecommitdiff
path: root/vmstate.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-06-28 15:11:57 +0200
committerJuan Quintela <quintela@redhat.com>2012-07-20 08:19:27 +0200
commitd1315aac6e4df1f472a6f87ef6e310b8c109f498 (patch)
treef8cdca807d155698e2399306dbec7892b363dd9b /vmstate.h
parent6bd68781331590c4f2fbd1fdf98e80d7f6588b31 (diff)
savevm: split save_live_setup from save_live_state
This patch splits stage 1 to its own function for both save_live users, ram and block. It is just a copy of the function, removing the parts of the other stages. Optimizations would came later. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'vmstate.h')
-rw-r--r--vmstate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vmstate.h b/vmstate.h
index 96651a5b9c..049f2b7a20 100644
--- a/vmstate.h
+++ b/vmstate.h
@@ -32,6 +32,7 @@ typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id);
typedef struct SaveVMHandlers {
void (*set_params)(const MigrationParams *params, void * opaque);
SaveStateHandler *save_state;
+ int (*save_live_setup)(QEMUFile *f, void *opaque);
int (*save_live_state)(QEMUFile *f, int stage, void *opaque);
void (*cancel)(void *opaque);
LoadStateHandler *load_state;