Patchwork [02/41] fix migration sync

login
register
mail settings
Submitter Juan Quintela
Date Oct. 2, 2012, 11:32 a.m.
Message ID <1349177616-5341-3-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/188455/
State New
Headers show

Comments

Juan Quintela - Oct. 2, 2012, 11:32 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 arch_init.c | 1 +
 1 file changed, 1 insertion(+)
Paolo Bonzini - Oct. 2, 2012, 11:37 a.m.
Il 02/10/2012 13:32, Juan Quintela ha scritto:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
>  arch_init.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch_init.c b/arch_init.c
> index 9904f95..671d354 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -517,6 +517,7 @@ static int ram_save_setup(QEMUFile *f, void *opaque)
>      }
> 
>      memory_global_dirty_log_start();
> +    memory_global_sync_dirty_bitmap(get_system_memory());
> 
>      qemu_put_be64(f, ram_bytes_total() | RAM_SAVE_FLAG_MEM_SIZE);
> 

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

Patch

diff --git a/arch_init.c b/arch_init.c
index 9904f95..671d354 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -517,6 +517,7 @@  static int ram_save_setup(QEMUFile *f, void *opaque)
     }

     memory_global_dirty_log_start();
+    memory_global_sync_dirty_bitmap(get_system_memory());

     qemu_put_be64(f, ram_bytes_total() | RAM_SAVE_FLAG_MEM_SIZE);