[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] [PATCHv6 00/16] aio / timers: Add AioContext time
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RFC] [PATCHv6 00/16] aio / timers: Add AioContext timers and use ppoll |
Date: |
Wed, 7 Aug 2013 11:43:58 -0400 (EDT) |
> For anyone wishing to review this series, here's a diagram showing the
> new relationships and a summary of this series:
>
> http://vmsplice.net/~stefan/timerlist.jpg
>
> TimerList is the list of QEMUTimers which are pending on a QEMUClock
> clock source.
I just started reviewing this and the diagram may be different in
v7, anyway: why do you need a default TimerListGroup? I would have
thought it is enough to use the default AioContext's own TLG.
Paolo
> Previously QEMUClock contained this list inline but the goal is to let
> AioContexts have their own independent timer lists. This makes timers
> much more thread-friendly since we don't work on global lists and
> callbacks are dispatched in the same thread's AioContext where they were
> created.
>
> TimerListGroup holds a timerlist for each clock source ("rt", "vm", and
> "host"). The main loop has the default TimerListGroup. Each AioContext
> has its own TimerListGroup.
>
> The other major change is that QEMU now uses the event loop's poll()
> timeout value instead of a separate OS-specific timer mechanism (aka the
> "alarm timer").
>
> Stefan
>
- [Qemu-devel] [RFC] [PATCHv6 11/16] aio / timers: Convert aio_poll to use AioContext timers' deadline, (continued)
- [Qemu-devel] [RFC] [PATCHv6 11/16] aio / timers: Convert aio_poll to use AioContext timers' deadline, Alex Bligh, 2013/08/06
- [Qemu-devel] [RFC] [PATCHv6 12/16] aio / timers: Convert mainloop to use timeout, Alex Bligh, 2013/08/06
- [Qemu-devel] [RFC] [PATCHv6 13/16] aio / timers: On timer modification, qemu_notify or aio_notify, Alex Bligh, 2013/08/06
- [Qemu-devel] [RFC] [PATCHv6 14/16] aio / timers: Use all timerlists in icount warp calculations, Alex Bligh, 2013/08/06
- [Qemu-devel] [RFC] [PATCHv6 16/16] aio / timers: Add test harness for AioContext timers, Alex Bligh, 2013/08/06
- [Qemu-devel] [RFC] [PATCHv6 02/16] aio / timers: add ppoll support with qemu_poll_ns, Alex Bligh, 2013/08/06
- [Qemu-devel] [RFC] [PATCHv6 15/16] aio / timers: Remove alarm timers, Alex Bligh, 2013/08/06
- [Qemu-devel] [RFC] [PATCHv6 00/16] aio / timers: Add AioContext timers and use ppoll, Alex Bligh, 2013/08/06
- Re: [Qemu-devel] [RFC] [PATCHv6 00/16] aio / timers: Add AioContext timers and use ppoll, Stefan Hajnoczi, 2013/08/06
- Re: [Qemu-devel] [RFC] [PATCHv6 00/16] aio / timers: Add AioContext timers and use ppoll, Stefan Hajnoczi, 2013/08/06
- Re: [Qemu-devel] [RFC] [PATCHv6 00/16] aio / timers: Add AioContext timers and use ppoll,
Paolo Bonzini <=
- Re: [Qemu-devel] [RFC] [PATCHv6 00/16] aio / timers: Add AioContext timers and use ppoll, Alex Bligh, 2013/08/07