There is no reason why the cache cleaning timer should run in virtual time, run it in realtime instead.
Suggested-by: Kevin Wolf <[email protected]> Signed-off-by: Hanna Czenczek <[email protected]> --- block/qcow2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/qcow2.c b/block/qcow2.c index ecff3bed0e..d13cb9b42a 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) { -- 2.51.1
