diff options
author | Alexey Perevalov <a.perevalov@samsung.com> | 2017-10-05 14:13:18 +0300 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-10-23 18:03:39 +0200 |
commit | 8be4620be237356e22905d9aa2356ced492970c8 (patch) | |
tree | c14f2b8e59f197537040154646829dd10cb574c0 /migration/ram.c | |
parent | d6eff5d75d6b8d2fb18dca4ebd9f02a16d8e7f3b (diff) | |
download | qemu-8be4620be237356e22905d9aa2356ced492970c8.zip qemu-8be4620be237356e22905d9aa2356ced492970c8.tar.gz qemu-8be4620be237356e22905d9aa2356ced492970c8.tar.bz2 |
migration: postcopy_place_page factoring out
Need to mark copied pages as closer as possible to the place where it
tracks down. That will be necessary in futher patch.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r-- | migration/ram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migration/ram.c b/migration/ram.c index 1b19a89..bd4fc5c 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -2753,10 +2753,10 @@ static int ram_load_postcopy(QEMUFile *f) if (all_zero) { ret = postcopy_place_page_zero(mis, place_dest, - block->page_size); + block); } else { ret = postcopy_place_page(mis, place_dest, - place_source, block->page_size); + place_source, block); } } if (!ret) { |