aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2017-04-01 16:18:43 +0800
committerJuan Quintela <quintela@redhat.com>2017-04-21 12:25:41 +0200
commitfaec066ab8c6ed078dd34a2735a67437673bd0f0 (patch)
tree8c7aea69b1803fdfd2d5076e9d1b129473ac157d /include
parent343001f68dd44d3052dea7d4db325aa8a4109b24 (diff)
downloadqemu-faec066ab8c6ed078dd34a2735a67437673bd0f0.zip
qemu-faec066ab8c6ed078dd34a2735a67437673bd0f0.tar.gz
qemu-faec066ab8c6ed078dd34a2735a67437673bd0f0.tar.bz2
migration: rename max_size to threshold_size
In migration codes (especially in migration_thread()), max_size is used in many place for the threshold value that we will start to do the final flush and jump to the next stage to dump the whole rest things to destination. However its name is confusing to first readers. Let's rename it to "threshold_size" when proper and add a comment for it. No functional change is made. CC: Juan Quintela <quintela@redhat.com> CC: "Dr. David Alan Gilbert" <dgilbert@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: "Dr. David Alan Gilbert" <dgilbert@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/migration/vmstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index f2dbf84..dad3984 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -56,7 +56,8 @@ typedef struct SaveVMHandlers {
/* This runs outside the iothread lock! */
int (*save_live_setup)(QEMUFile *f, void *opaque);
- void (*save_live_pending)(QEMUFile *f, void *opaque, uint64_t max_size,
+ void (*save_live_pending)(QEMUFile *f, void *opaque,
+ uint64_t threshold_size,
uint64_t *non_postcopiable_pending,
uint64_t *postcopiable_pending);
LoadStateHandler *load_state;