aboutsummaryrefslogtreecommitdiff
path: root/arch_init.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-12-20 11:26:04 +0100
committerJuan Quintela <quintela@redhat.com>2013-01-17 13:27:07 +0100
commit9c339485f0abb96595f4d91880b177726463300c (patch)
tree8085af2cb5953b9dcff44d8811af2f3ee0cb4016 /arch_init.c
parentfb3409de22c7c167dced51175500bc4b1a78dcc2 (diff)
downloadqemu-9c339485f0abb96595f4d91880b177726463300c.zip
qemu-9c339485f0abb96595f4d91880b177726463300c.tar.gz
qemu-9c339485f0abb96595f4d91880b177726463300c.tar.bz2
Protect migration_bitmap_sync() with the ramlist lock
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>
Diffstat (limited to 'arch_init.c')
-rw-r--r--arch_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch_init.c b/arch_init.c
index 8c833b6..dada6de 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -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 */