Re: [Qemu-devel] [PATCH 5/9] virtio: add aio handler

2016-04-01 Thread Cornelia Huck
On Fri, 1 Apr 2016 15:19:50 +0200 Paolo Bonzini wrote: > From: "Michael S. Tsirkin" > > In addition to handling IO in vcpu thread and > in io thread, blk dataplane introduces yet another mode: > handling it by aio. > > This reuses the same handler as previous modes, > which triggers races as

[Qemu-devel] [PATCH 5/9] virtio: add aio handler

2016-04-01 Thread Paolo Bonzini
From: "Michael S. Tsirkin" In addition to handling IO in vcpu thread and in io thread, blk dataplane introduces yet another mode: handling it by aio. This reuses the same handler as previous modes, which triggers races as these were not designed to be reentrant. As a temporary fix, add a separa

Re: [Qemu-devel] [PATCH 5/9] virtio: add aio handler

2016-03-30 Thread Paolo Bonzini
On 30/03/2016 16:55, Cornelia Huck wrote: >> > if (assign && set_handler) { >> > aio_set_event_notifier(ctx, &vq->host_notifier, true, >> > - virtio_queue_host_notifier_read); >> > + virtio_queue_host_notifier_aio_read); >>

Re: [Qemu-devel] [PATCH 5/9] virtio: add aio handler

2016-03-30 Thread Cornelia Huck
On Wed, 30 Mar 2016 14:48:04 +0200 Paolo Bonzini wrote: > From: "Michael S. Tsirkin" > > In addition to handling IO in vcpu thread and > in io thread, blk dataplane introduces yet another mode: > handling it by aio. > > This reuses the same handler as previous modes, > which triggers races as

[Qemu-devel] [PATCH 5/9] virtio: add aio handler

2016-03-30 Thread Paolo Bonzini
From: "Michael S. Tsirkin" In addition to handling IO in vcpu thread and in io thread, blk dataplane introduces yet another mode: handling it by aio. This reuses the same handler as previous modes, which triggers races as these were not designed to be reentrant. As a temporary fix, add a separa