]> git.proxmox.com Git - mirror_qemu.git/commit
migration/postcopy: count target page number to decide the place_needed
authorWei Yang <richardw.yang@linux.intel.com>
Thu, 7 Nov 2019 12:39:04 +0000 (20:39 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 20 Jan 2020 08:10:23 +0000 (09:10 +0100)
commit4cbb3c63c165ae71b71f764030c7b16d98679391
tree91d00bd196c93f4685f63b1c4e5c7ec9df9c91ec
parentca1a6b708ba2d94f2dd64bb8ec04223a708c9b40
migration/postcopy: count target page number to decide the place_needed

In postcopy, it requires to place whole host page instead of target
page.

Currently, it relies on the page offset to decide whether this is the
last target page. We also can count the target page number during the
iteration. When the number of target page equals
(host page size / target page size), this means it is the last target
page in the host page.

This is a preparation for non-ordered target page transmission.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c