[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/21] arch_init: export sort_ram_list() and ram_sav
From: |
Isaku Yamahata |
Subject: |
[Qemu-devel] [PATCH 01/21] arch_init: export sort_ram_list() and ram_save_block() |
Date: |
Thu, 29 Dec 2011 10:25:40 +0900 |
This will be used by postcopy.
Signed-off-by: Isaku Yamahata <address@hidden>
---
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
- [Qemu-devel] [PATCH 05/21] arch_init/ram_save_live: factor out RAM_SAVE_FLAG_MEM_SIZE case, (continued)
- [Qemu-devel] [PATCH 05/21] arch_init/ram_save_live: factor out RAM_SAVE_FLAG_MEM_SIZE case, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 10/21] exec.c: export last_ram_offset(), Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 20/21] postcopy outgoing: add -p and -n option to migrate command, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 15/21] migration: factor out parameters into MigrationParams, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 12/21] savevm: qemu_pending_size() to return pending buffered size, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 18/21] configure: add CONFIG_POSTCOPY option, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 16/21] umem.h: import Linux umem.h, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 14/21] migration: export migrate_fd_completed() and migrate_fd_cleanup(), Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 19/21] postcopy: introduce -postcopy and -postcopy-flags option, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 09/21] exec.c: factor out qemu_get_ram_ptr(), Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 01/21] arch_init: export sort_ram_list() and ram_save_block(),
Isaku Yamahata <=
- [Qemu-devel] [PATCH 21/21] postcopy: implement postcopy livemigration, Isaku Yamahata, 2011/12/28
- [Qemu-devel] [PATCH 13/21] savevm, buffered_file: introduce method to drain buffer of buffered file, Isaku Yamahata, 2011/12/28
- Re: [Qemu-devel] [PATCH 00/21][RFC] postcopy live migration, Anthony Liguori, 2011/12/29