Stop call timers in main loop and let each mini event-loop run its own timers.
Signed-off-by: Liu Ping Fan <pingf...@linux.vnet.ibm.com> --- aio-posix.c | 2 ++ main-loop.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aio-posix.c b/aio-posix.c index b68eccd..29c2769 100644 --- a/aio-posix.c +++ b/aio-posix.c @@ -191,6 +191,8 @@ bool aio_poll(AioContext *ctx, bool blocking) progress = true; } + qemu_run_all_timers(); + if (progress && !blocking) { return true; } diff --git a/main-loop.c b/main-loop.c index 4a94a52..46a98a3 100644 --- a/main-loop.c +++ b/main-loop.c @@ -467,8 +467,6 @@ int main_loop_wait(int nonblocking) slirp_pollfds_poll(gpollfds, (ret < 0)); #endif - qemu_run_all_timers(); - return ret; } -- 1.8.1.4