Re: [Qemu-devel] [PATCH 3/9] dataplane: remove EventPoll in favor of AioContext

2013-03-08 Thread Christian Borntraeger
On 04/03/13 10:15, Stefan Hajnoczi wrote: From: Paolo Bonzini pbonz...@redhat.com During the review of the dataplane code, the EventPoll API morphed itself (not concidentially) into something very very similar to an AioContext. Thus, it is trivial to convert virtio-blk-dataplane to use

Re: [Qemu-devel] [PATCH 3/9] dataplane: remove EventPoll in favor of AioContext

2013-03-08 Thread Paolo Bonzini
Il 08/03/2013 09:37, Christian Borntraeger ha scritto: +if (assign) { +int r = event_notifier_init(notifier, 0); + +if (r 0) { +return r; +} +virtio_queue_set_guest_notifier_fd_handler(vq, true, with_irqfd); Perhaps you can simply hard-code

Re: [Qemu-devel] [PATCH 3/9] dataplane: remove EventPoll in favor of AioContext

2013-03-08 Thread Cornelia Huck
On Fri, 08 Mar 2013 10:22:36 +0100 Paolo Bonzini pbonz...@redhat.com wrote: Il 08/03/2013 09:37, Christian Borntraeger ha scritto: +if (assign) { +int r = event_notifier_init(notifier, 0); + +if (r 0) { +return r; +} +

Re: [Qemu-devel] [PATCH 3/9] dataplane: remove EventPoll in favor of AioContext

2013-03-08 Thread Paolo Bonzini
Il 08/03/2013 13:44, Cornelia Huck ha scritto: Perhaps you can simply hard-code with_irqfd to false in this call to virtio_queue_set_guest_notifier_fd_handler and the one below? Then the guest notifier will be emulated in userspace and processed via vdev-binding-notify. Well,

[Qemu-devel] [PATCH 3/9] dataplane: remove EventPoll in favor of AioContext

2013-03-04 Thread Stefan Hajnoczi
From: Paolo Bonzini pbonz...@redhat.com During the review of the dataplane code, the EventPoll API morphed itself (not concidentially) into something very very similar to an AioContext. Thus, it is trivial to convert virtio-blk-dataplane to use AioContext, and a first baby step towards letting