Re: [Qemu-devel] [PATCH 01/10] AioContext: take bottom halves into account when computing aio_poll timeout

2014-08-01 Thread Paolo Bonzini
Il 01/08/2014 16:34, Stefan Hajnoczi ha scritto: > On Wed, Jul 09, 2014 at 11:53:01AM +0200, Paolo Bonzini wrote: >> diff --git a/async.c b/async.c >> index 34af0b2..ac40eab 100644 >> --- a/async.c >> +++ b/async.c >> @@ -152,39 +152,43 @@ void qemu_bh_delete(QEMUBH *bh) >> bh->deleted = 1; >>

Re: [Qemu-devel] [PATCH 01/10] AioContext: take bottom halves into account when computing aio_poll timeout

2014-08-01 Thread Stefan Hajnoczi
On Wed, Jul 09, 2014 at 11:53:01AM +0200, Paolo Bonzini wrote: > diff --git a/async.c b/async.c > index 34af0b2..ac40eab 100644 > --- a/async.c > +++ b/async.c > @@ -152,39 +152,43 @@ void qemu_bh_delete(QEMUBH *bh) > bh->deleted = 1; > } > > -static gboolean > -aio_ctx_prepare(GSource *sou

[Qemu-devel] [PATCH 01/10] AioContext: take bottom halves into account when computing aio_poll timeout

2014-07-09 Thread Paolo Bonzini
Right now, QEMU invokes aio_bh_poll before the "poll" phase of aio_poll. It is simpler to do it afterwards and skip the "poll" phase altogether when the OS-dependent parts of AioContext are invoked from GSource. This way, AioContext behaves more similarly when used as a GSource vs. when used as s