]> git.proxmox.com Git - mirror_qemu.git/commit
migration: block-dirty-bitmap: add missing qemu_mutex_lock_iothread
authorEmanuele Giuseppe Esposito <eesposit@redhat.com>
Tue, 5 Oct 2021 08:07:50 +0000 (04:07 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Oct 2021 11:10:29 +0000 (13:10 +0200)
commit3c158eba1e11e52dbd0e14fc8fd40ec80abca436
tree7934abf51cbb7332c48d18e0b0240dcbef4ef3a6
parent4dba27890844146d69e84916d024697947821655
migration: block-dirty-bitmap: add missing qemu_mutex_lock_iothread

init_dirty_bitmap_migration assumes the iothread lock (BQL)
to be held, but instead it isn't.

Instead of adding the lock to qemu_savevm_state_setup(),
follow the same pattern as the other ->save_setup callbacks
and lock+unlock inside dirty_bitmap_save_setup().

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20211005080751.3797161-2-eesposit@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
migration/block-dirty-bitmap.c