]> Git Repo - qemu.git/commit
migration: block-dirty-bitmap: add missing qemu_mutex_lock_iothread
authorEmanuele Giuseppe Esposito <[email protected]>
Tue, 5 Oct 2021 08:07:50 +0000 (04:07 -0400)
committerPaolo Bonzini <[email protected]>
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 <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Message-Id: <20211005080751.3797161[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
migration/block-dirty-bitmap.c
This page took 0.024291 seconds and 4 git commands to generate.