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. > >

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 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; > > +} > > +virtio_queue_set_gu

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 har

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 > > 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

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

2013-03-04 Thread Stefan Hajnoczi
From: Paolo Bonzini 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 dataplane talk directl