]> git.proxmox.com Git - mirror_qemu.git/commit - cpus.c
qtest: Fix deadloop by running main loop AIO context's timers
authorFam Zheng <famz@redhat.com>
Mon, 19 Jan 2015 09:51:43 +0000 (17:51 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 16 Feb 2015 15:07:17 +0000 (15:07 +0000)
commitefef88b3d9ad4325172ed288032807fa88d683cc
tree65f5d4dc2357dd75bfb9fc6782afd1d97197fee1
parenta7be17bee855f26c317e99aa6582e1dc9b8ebd71
qtest: Fix deadloop by running main loop AIO context's timers

qemu_clock_run_timers() only takes care of main_loop_tlg, we shouldn't
forget aio timer list groups.

Currently, the qemu_clock_deadline_ns_all (a few lines above) counts all
the timergroups of this clock type, including aio tlg, but we don't fire
them, so they are never cleared, which makes a dead loop.

For example, this function hangs when trying to drive throttled block
request queue with qtest clock_step.

Signed-off-by: Fam Zheng <famz@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1421661103-29153-1-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
cpus.c