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 d4c92b0..1947396 100644 --- a/arch_init.c +++ b/arch_init.c @@ -112,7 +112,7 @@ static int is_dup_page(uint8_t *page, uint8_t ch) 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; @@ -229,7 +229,7 @@ static int block_compar(const void *a, const void *b) return 0; } -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 372b066..e79a69b 100644 --- a/migration.h +++ b/migration.h @@ -78,6 +78,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(Monitor *mon, 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