This will be used by postcopy. Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx> --- arch_init.c | 4 ++-- migration.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch_init.c b/arch_init.c index a9e8b74..38e0173 100644 --- a/arch_init.c +++ b/arch_init.c @@ -164,7 +164,7 @@ static int is_dup_page(uint8_t *page) static RAMBlock *last_block; static ram_addr_t last_offset; -static int ram_save_block(QEMUFile *f) +int ram_save_block(QEMUFile *f) { RAMBlock *block = last_block; ram_addr_t offset = last_offset; @@ -273,7 +273,7 @@ static int block_compar(const void *a, const void *b) return strcmp((*ablock)->idstr, (*bblock)->idstr); } -static void sort_ram_list(void) +void sort_ram_list(void) { RAMBlock *block, *nblock, **blocks; int n; diff --git a/migration.h b/migration.h index 2e9ca2e..8b9509c 100644 --- a/migration.h +++ b/migration.h @@ -76,6 +76,8 @@ uint64_t ram_bytes_remaining(void); uint64_t ram_bytes_transferred(void); uint64_t ram_bytes_total(void); +void sort_ram_list(void); +int ram_save_block(QEMUFile *f); int ram_save_live(QEMUFile *f, int stage, void *opaque); int ram_load(QEMUFile *f, void *opaque, int version_id); -- 1.7.1.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html