Skip to content

Commit

Permalink
Protect migration_bitmap_sync() with the ramlist lock
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>

Reviewed-by: Reviewed-by: Eric Blake <eblake@redhat.com>
  • Loading branch information
bonzini authored and Juan Quintela committed Jan 17, 2013
1 parent fb3409d commit 9c33948
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch_init.c
Expand Up @@ -658,9 +658,8 @@ static int ram_save_iterate(QEMUFile *f, void *opaque)

static int ram_save_complete(QEMUFile *f, void *opaque)
{
migration_bitmap_sync();

qemu_mutex_lock_ramlist();
migration_bitmap_sync();

/* try transferring iterative blocks of memory */

Expand Down

0 comments on commit 9c33948

Please sign in to comment.