Commit 9c339485 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Juan Quintela

Protect migration_bitmap_sync() with the ramlist lock

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
Reviewed-by: default avatarReviewed-by: Eric Blake <eblake@redhat.com>
parent fb3409de
...@@ -658,9 +658,8 @@ static int ram_save_iterate(QEMUFile *f, void *opaque) ...@@ -658,9 +658,8 @@ static int ram_save_iterate(QEMUFile *f, void *opaque)
static int ram_save_complete(QEMUFile *f, void *opaque) static int ram_save_complete(QEMUFile *f, void *opaque)
{ {
migration_bitmap_sync();
qemu_mutex_lock_ramlist(); qemu_mutex_lock_ramlist();
migration_bitmap_sync();
/* try transferring iterative blocks of memory */ /* try transferring iterative blocks of memory */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment