summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2015-11-05 19:10:54 +0100
committerJuan Quintela2015-11-10 15:00:26 +0100
commitc31b098f64c5bbbc26350b9b5cf98ae2d2888de7 (patch)
tree9d4dc89ab0824855de81d16848c1f559b2a5153d /include/migration
parentMIG_CMD_PACKAGED: Send a packaged chunk of migration stream (diff)
downloadqemu-c31b098f64c5bbbc26350b9b5cf98ae2d2888de7.tar.gz
qemu-c31b098f64c5bbbc26350b9b5cf98ae2d2888de7.tar.xz
qemu-c31b098f64c5bbbc26350b9b5cf98ae2d2888de7.zip
Modify save_live_pending for postcopy
Modify save_live_pending to return separate postcopiable and non-postcopiable counts. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r--include/migration/vmstate.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 9986ccc8fa..7f16a38fc7 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -54,8 +54,9 @@ typedef struct SaveVMHandlers {
/* This runs outside the iothread lock! */
int (*save_live_setup)(QEMUFile *f, void *opaque);
- uint64_t (*save_live_pending)(QEMUFile *f, void *opaque, uint64_t max_size);
-
+ void (*save_live_pending)(QEMUFile *f, void *opaque, uint64_t max_size,
+ uint64_t *non_postcopiable_pending,
+ uint64_t *postcopiable_pending);
LoadStateHandler *load_state;
} SaveVMHandlers;