On 9 Aug 2013, at 11:04, Paolo Bonzini wrote: >> @@ -180,7 +189,7 @@ aio_ctx_check(GSource *source) >> return true; >> } >> } >> - return aio_pending(ctx); >> + return aio_pending(ctx) || (timerlistgroup_deadline_ns(ctx->tlg) == 0); > > Again, if we do the "two AioContext" tricks, the > timerlistgroup_deadline_ns function would be internal to AioContext.
I don't think that's true as I think we'd still want to encapsulate walking the array of clocks within qemu-timer.c. -- Alex Bligh