[Qemu-devel] [PATCH 03/11] vdi: make it thread-safe

2017-06-29 Thread Paolo Bonzini
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 Reviewed-by: Stefan Hajnoczi

Re: [Qemu-devel] [PATCH 03/11] vdi: make it thread-safe

2017-05-31 Thread Eric Blake
On 05/31/2017 04:43 AM, Paolo Bonzini wrote: > 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. > > Signed-off-by:

[Qemu-devel] [PATCH 03/11] vdi: make it thread-safe

2017-05-31 Thread Paolo Bonzini
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. Signed-off-by: Paolo Bonzini --- block/vdi.c | 48