@@ -345,6 +345,11 @@ void migration_bitmap_free(void)
migration_bitmap = NULL;
}
+const unsigned long *migration_bitmap_get(void)
+{
+ return migration_bitmap;
+}
+
static inline bool migration_bitmap_test_and_reset_dirty(MemoryRegion *mr,
ram_addr_t offset)
{
@@ -373,7 +378,7 @@ static inline bool migration_bitmap_set_dirty(MemoryRegion *mr,
return ret;
}
-static void migration_bitmap_sync(void)
+void migration_bitmap_sync(void)
{
RAMBlock *block;
ram_addr_t addr;
@@ -111,6 +111,8 @@ uint64_t ram_bytes_transferred(void);
uint64_t ram_bytes_total(void);
void migration_bitmap_init(void);
void migration_bitmap_free(void);
+const unsigned long *migration_bitmap_get(void);
+void migration_bitmap_sync(void);
extern SaveVMHandlers savevm_ram_handlers;
Those migration bitmap operation will be used by postcopy. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> --- arch_init.c | 7 ++++++- migration.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-)