]> git.proxmox.com Git - mirror_qemu.git/commit - migration/savevm.c
migration: rename max_size to threshold_size
authorPeter Xu <peterx@redhat.com>
Sat, 1 Apr 2017 08:18:43 +0000 (16:18 +0800)
committerJuan Quintela <quintela@redhat.com>
Fri, 21 Apr 2017 10:25:41 +0000 (12:25 +0200)
commitfaec066ab8c6ed078dd34a2735a67437673bd0f0
tree8c7aea69b1803fdfd2d5076e9d1b129473ac157d
parent343001f68dd44d3052dea7d4db325aa8a4109b24
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>
include/migration/vmstate.h
migration/migration.c
migration/savevm.c