On 05/04/2016 12:42, Paolo Bonzini wrote: > I think you're right about this. > > Dataplane has an event_notifier_set; we should move it to > virtio_queue_aio_set_host_notifier_handler and add it to > virtio_queue_set_host_notifier_handler. I'll send v3 today.
As discussed on IRC, even that wouldn't be safe. The good news is that this patch is not necessary, because virtio_queue_aio_set_host_notifier_handler(s->vq, s->ctx, false, false) is called inside aio_context_acquire. Paolo