qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] block/throttle-groups: use QEMU_CLOCK_REALTIME for qtest too


From: Vladimir Sementsov-Ogievskiy
Subject: [PATCH 1/2] block/throttle-groups: use QEMU_CLOCK_REALTIME for qtest too
Date: Wed, 6 Apr 2022 18:32:01 +0300

Virtual clock just doesn't tick for iotests, and throttling just not
work. Let's use realtime clock.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org>
---
 block/throttle-groups.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/block/throttle-groups.c b/block/throttle-groups.c
index fb203c3ced..029158d797 100644
--- a/block/throttle-groups.c
+++ b/block/throttle-groups.c
@@ -753,10 +753,6 @@ static void throttle_group_obj_init(Object *obj)
     ThrottleGroup *tg = THROTTLE_GROUP(obj);
 
     tg->clock_type = QEMU_CLOCK_REALTIME;
-    if (qtest_enabled()) {
-        /* For testing block IO throttling only */
-        tg->clock_type = QEMU_CLOCK_VIRTUAL;
-    }
     tg->is_initialized = false;
     qemu_mutex_init(&tg->lock);
     throttle_init(&tg->ts);
-- 
2.35.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]