summaryrefslogtreecommitdiffstats
path: root/scripts/modules/module_block.py
diff options
context:
space:
mode:
authorPaolo Bonzini2017-06-29 15:27:41 +0200
committerFam Zheng2017-07-17 05:28:15 +0200
commit1e886639791762e89b51aa0507f523c6a1448831 (patch)
tree0dd8ee307a4282fc631e8f8a20de6ae4dced666b /scripts/modules/module_block.py
parentcoroutine-lock: add qemu_co_rwlock_downgrade and qemu_co_rwlock_upgrade (diff)
downloadqemu-1e886639791762e89b51aa0507f523c6a1448831.tar.gz
qemu-1e886639791762e89b51aa0507f523c6a1448831.tar.xz
qemu-1e886639791762e89b51aa0507f523c6a1448831.zip
vdi: make it thread-safe
The VirtualBox driver is using a mutex to order all allocating writes, but it is not protecting accesses to the bitmap because they implicitly happen under the AioContext mutex. Change this to use a CoRwlock explicitly. Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20170629132749.997-4-pbonzini@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'scripts/modules/module_block.py')
0 files changed, 0 insertions, 0 deletions