diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-11-07 20:39:04 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2020-01-20 09:10:23 +0100 |
commit | 4cbb3c63c165ae71b71f764030c7b16d98679391 (patch) | |
tree | 91d00bd196c93f4685f63b1c4e5c7ec9df9c91ec /stubs | |
parent | ca1a6b708ba2d94f2dd64bb8ec04223a708c9b40 (diff) |
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>
Diffstat (limited to 'stubs')
0 files changed, 0 insertions, 0 deletions