]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/timer: avoid deadlock when shutting down
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 16 Sep 2024 08:53:56 +0000 (09:53 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Thu, 19 Sep 2024 14:58:01 +0000 (15:58 +0100)
commitbc02be4508d8753d1f6071b77d10f4661587df6f
tree15d263fa47456abe36f0c4bc1722d4309ae2c870
parentecbcc9ead2f86a80e6d1292c10f733b4ddd25256
util/timer: avoid deadlock when shutting down

When we shut down a guest we disable the timers. However this can
cause deadlock if the guest has queued some async work that is trying
to advance system time and spins forever trying to wind time forward.
Pay attention to the return code and bail early if we can't wind time
forward.

Reported-by: Elisha Hollander <just4now666666@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-Id: <20240916085400.1046925-15-alex.bennee@linaro.org>
util/qemu-timer.c