]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 24 Feb 2015 21:05:39 +0000 (15:05 -0600)
commit987aba53db2e9e62e3f0ae0c22aa0381a735e282
tree5cfc8b802572989425cd9662519c720e03f8add9
parent7d389a2138a3b31895cf40300d052eda71ef0722
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>
(cherry picked from commit efef88b3d9ad4325172ed288032807fa88d683cc)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
cpus.c