Patchwork [2/8] fix migration sync

login
register
mail settings
Submitter Juan Quintela
Date Aug. 18, 2012, 11:17 a.m.
Message ID <1345288635-1369-3-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/178447/
State New
Headers show

Comments

Juan Quintela - Aug. 18, 2012, 11:17 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 arch_init.c | 1 +
 1 file changed, 1 insertion(+)
Orit Wasserman - Aug. 21, 2012, 10:52 a.m.
On 08/18/2012 02:17 PM, Juan Quintela wrote:
> 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 9b46bfc..0a9ca85 100644
> --- a/arch_init.c
> +++ b/arch_init.c
> @@ -488,6 +488,7 @@ static int ram_save_setup(QEMUFile *f, void *opaque)
>      ram_addr_t addr;
>      RAMBlock *block;
> 
> +    memory_global_sync_dirty_bitmap(get_system_memory());
>      bytes_transferred = 0;
>      last_block = NULL;
>      last_offset = 0;
> 
Reviewed-by: Orit Wasserman <owasserm@redhat.com>

Patch

diff --git a/arch_init.c b/arch_init.c
index 9b46bfc..0a9ca85 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -488,6 +488,7 @@  static int ram_save_setup(QEMUFile *f, void *opaque)
     ram_addr_t addr;
     RAMBlock *block;

+    memory_global_sync_dirty_bitmap(get_system_memory());
     bytes_transferred = 0;
     last_block = NULL;
     last_offset = 0;