From: Hanna Czenczek Date: Mon, 10 Nov 2025 15:48:48 +0000 (+0100) Subject: qcow2: Schedule cache-clean-timer in realtime X-Git-Tag: v10.2.0-rc1~5^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94ce870f60dc59777aa78313633930c252638c19;p=thirdparty%2Fqemu.git qcow2: Schedule cache-clean-timer in realtime There is no reason why the cache cleaning timer should run in virtual time, run it in realtime instead. Suggested-by: Kevin Wolf Signed-off-by: Hanna Czenczek Message-ID: <20251110154854.151484-14-hreitz@redhat.com> Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- diff --git a/block/qcow2.c b/block/qcow2.c index 05da589729..e29810d86a 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -846,7 +846,7 @@ static void coroutine_fn cache_clean_timer(void *opaque) while (wait_ns > 0) { qemu_co_sleep_ns_wakeable(&s->cache_clean_timer_wake, - QEMU_CLOCK_VIRTUAL, wait_ns); + QEMU_CLOCK_REALTIME, wait_ns); WITH_QEMU_LOCK_GUARD(&s->lock) { if (s->cache_clean_interval > 0) {