summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-05 18:10:54 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-10 15:00:26 +0100
commitc31b098f64c5bbbc26350b9b5cf98ae2d2888de7 (patch)
tree9d4dc89ab0824855de81d16848c1f559b2a5153d /include/migration
parent11cf1d984b86b294972cd25df6286e5b2e98735d (diff)
downloadhqemu-c31b098f64c5bbbc26350b9b5cf98ae2d2888de7.zip
hqemu-c31b098f64c5bbbc26350b9b5cf98ae2d2888de7.tar.gz
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 9986ccc..7f16a38 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;
OpenPOWER on IntegriCloud