On 16/10/2018 15:03, Artem Pisarenko wrote: > + if (!timer_list) { > + timer_list = main_loop_tlg.tl[type]; > + } > + timer_init_full(ts, timer_list, scale, attributes, cb, opaque);
Please move this "if" to timer_init_full, so that here you can just pass timer_list. timer_init_full will then take a QEMUTimerListGroup* (NULL defaults to &main_loop_tlg, aio_timer_new passes &ctx->tlg) and a QEMUClockType instead of a QEMUTimerList*. Paolo