diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-20 11:26:04 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-01-17 13:27:07 +0100 |
commit | 9c339485f0abb96595f4d91880b177726463300c (patch) | |
tree | 8085af2cb5953b9dcff44d8811af2f3ee0cb4016 /arch_init.c | |
parent | fb3409de22c7c167dced51175500bc4b1a78dcc2 (diff) | |
download | qemu-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.c | 3 |
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 */ |