migration: simplify check to use qemu file buffer
authorPeter Xu <peterx@redhat.com>
Tue, 10 Jul 2018 09:18:53 +0000 (17:18 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 10 Jul 2018 11:55:59 +0000 (12:55 +0100)
commit1aa8367861645c3c0917f585fe14b1b6b23b0f66
tree7af224aa8ea2cdc86164e293b84368f516bcf909
parenta429e7f4887313370ed2d0d3607b7e6bdcfb0e1b
migration: simplify check to use qemu file buffer

Firstly, renaming the old matching_page_sizes variable to
matches_target_page_size, which suites more to what it did (it only
checks against target page size rather than multiple page sizes).
Meanwhile, simplify the check logic a bit, and enhance the comments.
Should have no functional change.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180710091902.28780-2-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/ram.c