From 151f7749f26e8b0eaca517376a89c01430c584e5 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 1 May 2009 20:52:47 +0200 Subject: kvm: Rework dirty bitmap synchronization Extend kvm_physical_sync_dirty_bitmap() so that is can sync across multiple slots. Useful for updating the whole dirty log during migration. Moreover, properly pass down errors the whole call chain. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- cpu-all.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpu-all.h') diff --git a/cpu-all.h b/cpu-all.h index b23be60945..dc9b034cbc 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -901,7 +901,8 @@ int cpu_physical_memory_set_dirty_tracking(int enable); int cpu_physical_memory_get_dirty_tracking(void); -void cpu_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, target_phys_addr_t end_addr); +int cpu_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, + target_phys_addr_t end_addr); void dump_exec_info(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)); -- cgit v1.2.3