summaryrefslogtreecommitdiffstats
path: root/include/migration
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2017-02-24 19:28:29 +0100
committerDr. David Alan Gilbert2017-02-28 12:30:23 +0100
commite8ca1db29b349e780743c504cb735c8e1d542a8c (patch)
treeb917e5911497dfbf56cea84d1e9080ec16d4a1a9 /include/migration
parentmigration: fix use-after-free of to_dst_file (diff)
downloadqemu-e8ca1db29b349e780743c504cb735c8e1d542a8c.tar.gz
qemu-e8ca1db29b349e780743c504cb735c8e1d542a8c.tar.xz
qemu-e8ca1db29b349e780743c504cb735c8e1d542a8c.zip
postcopy: Transmit ram size summary word
Replace the host page-size in the 'advise' command by a pagesize summary bitmap; if the VM is just using normal RAM then this will be exactly the same as before, however if they're using huge pages they'll be different, and thus: a) Migration from/to old qemu's that don't understand huge pages will fail early. b) Migrations with different size RAMBlocks will also fail early. This catches it very early; earlier than the detailed per-block check in the next patch. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20170224182844.32452-2-dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r--include/migration/migration.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/migration/migration.h b/include/migration/migration.h
index 34a383ef4c..6272adfaba 100644
--- a/include/migration/migration.h
+++ b/include/migration/migration.h
@@ -378,6 +378,7 @@ void global_state_store_running(void);
void flush_page_queue(MigrationState *ms);
int ram_save_queue_pages(MigrationState *ms, const char *rbname,
ram_addr_t start, ram_addr_t len);
+uint64_t ram_pagesize_summary(void);
PostcopyState postcopy_state_get(void);
/* Set the state and return the old state */