@@ -150,6 +150,9 @@ int qemu_read_default_config_files(bool userconfig)
return 0;
}
+/* Smallest page size for migrated RAM. */
+uint64_t qemu_migration_page_size = TARGET_PAGE_SIZE;
+
static inline bool is_zero_page(uint8_t *p)
{
return buffer_find_nonzero_offset(p, TARGET_PAGE_SIZE) ==
@@ -1055,6 +1055,7 @@ void *address_space_map(AddressSpace *as, hwaddr addr,
void address_space_unmap(AddressSpace *as, void *buffer, hwaddr len,
int is_write, hwaddr access_len);
+extern uint64_t qemu_migration_page_size;
#endif
Migration code assumes that each RAM block is a multiple of target page size. We can fix this in a variety of ways, for 1.6 the simplest way is possibly exporting the required page size so callers can make regions large enough. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> --- arch_init.c | 3 +++ include/exec/memory.h | 1 + 2 files changed, 4 insertions(+)