summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2017-02-24 19:28:35 +0100
committerDr. David Alan Gilbert2017-02-28 12:30:23 +0100
commitdf9ff5e1e37982e666216fe9a324d118a30f178f (patch)
tree2ea2f281cc40844eef1c176e174f38f967fa5569 /include/migration
parentpostcopy: Record largest page size (diff)
downloadqemu-df9ff5e1e37982e666216fe9a324d118a30f178f.tar.gz
qemu-df9ff5e1e37982e666216fe9a324d118a30f178f.tar.xz
qemu-df9ff5e1e37982e666216fe9a324d118a30f178f.zip
postcopy: Plumb pagesize down into place helpers
Now we deal with normal size pages and huge pages we need to tell the place handlers the size we're dealing with and make sure the temporary page is large enough. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Message-Id: <20170224182844.32452-8-dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r--include/migration/postcopy-ram.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/migration/postcopy-ram.h b/include/migration/postcopy-ram.h
index 43bbbcadc5..8e036b95a2 100644
--- a/include/migration/postcopy-ram.h
+++ b/include/migration/postcopy-ram.h
@@ -74,13 +74,15 @@ void postcopy_discard_send_finish(MigrationState *ms,
* to use other postcopy_ routines to allocate.
* returns 0 on success
*/
-int postcopy_place_page(MigrationIncomingState *mis, void *host, void *from);
+int postcopy_place_page(MigrationIncomingState *mis, void *host, void *from,
+ size_t pagesize);
/*
* Place a zero page at (host) atomically
* returns 0 on success
*/
-int postcopy_place_page_zero(MigrationIncomingState *mis, void *host);
+int postcopy_place_page_zero(MigrationIncomingState *mis, void *host,
+ size_t pagesize);
/*
* Allocate a page of memory that can be mapped at a later point in time