Re: [Qemu-devel] [RFC] [PATCHv2] aio / timers pt2: Replace main_loop_tlg with qemu_dummy_timer_ctx

2013-08-19 Thread Paolo Bonzini
Il 10/08/2013 13:21, Alex Bligh ha scritto: Currently we use a separate timer list group (main_loop_tlg) for the main loop. This patch replaces this with a dummy AioContext used just for timers in the main loop. Signed-off-by: Alex Bligh a...@alex.org.uk I guess for now this complicates

Re: [Qemu-devel] [RFC] [PATCHv2] aio / timers pt2: Replace main_loop_tlg with qemu_dummy_timer_ctx

2013-08-15 Thread Stefan Hajnoczi
On Sat, Aug 10, 2013 at 12:21:27PM +0100, Alex Bligh wrote: Currently we use a separate timer list group (main_loop_tlg) for the main loop. This patch replaces this with a dummy AioContext used just for timers in the main loop. Things get interesting when we make main loop

Re: [Qemu-devel] [RFC] [PATCHv2] aio / timers pt2: Replace main_loop_tlg with qemu_dummy_timer_ctx

2013-08-15 Thread Alex Bligh
On 15 Aug 2013, at 13:16, Stefan Hajnoczi wrote: Things get interesting when we make main loop qemu_set_fd_handler() and timers just use AioContext. Basically, we are distilling out the main-loop.c stuff which is a low-level glib-style event loop from the AioContext fd handlers, timers,

[Qemu-devel] [RFC] [PATCHv2] aio / timers pt2: Replace main_loop_tlg with qemu_dummy_timer_ctx

2013-08-10 Thread Alex Bligh
Currently we use a separate timer list group (main_loop_tlg) for the main loop. This patch replaces this with a dummy AioContext used just for timers in the main loop. Signed-off-by: Alex Bligh a...@alex.org.uk --- include/block/aio.h |3 +++ include/qemu/timer.h |9 ++---