[PATCH for-7.1 0/2] throttle-groups: use QEMU_CLOCK_REALTIME

Vladimir Sementsov-Ogievskiy posted 2 patches 3 years, 10 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220406153202.332186-1-vsementsov@openvz.org
Maintainers: Alberto Garcia <berto@igalia.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
block/throttle-groups.c               |  4 ---
tests/qemu-iotests/tests/throttle     | 50 +++++++++++++++++++++++++++
tests/qemu-iotests/tests/throttle.out |  0
3 files changed, 50 insertions(+), 4 deletions(-)
create mode 100755 tests/qemu-iotests/tests/throttle
create mode 100644 tests/qemu-iotests/tests/throttle.out
[PATCH for-7.1 0/2] throttle-groups: use QEMU_CLOCK_REALTIME
Posted by Vladimir Sementsov-Ogievskiy 3 years, 10 months ago
Hi all!

Honestly, I don't know why QEMU_CLOCK_VIRTUAL is used here. Comment say
that that's specially for throttle tests, but the simple test (patch 02)
just hangs because QEMU_CLOCK_VIRTUAL clock just doesn't tick in this
environment.. And if we change the clock to QEMU_CLOCK_REALTIME, new
test works, and old tests work as well.

What the relation between QEMU_CLOCK_VIRTUAL, qtest and throttle?
This code is here since "throttle: Add throttle group support" of 2015..

Vladimir Sementsov-Ogievskiy (2):
  block/throttle-groups: use QEMU_CLOCK_REALTIME for qtest too
  iotests: add throttle test

 block/throttle-groups.c               |  4 ---
 tests/qemu-iotests/tests/throttle     | 50 +++++++++++++++++++++++++++
 tests/qemu-iotests/tests/throttle.out |  0
 3 files changed, 50 insertions(+), 4 deletions(-)
 create mode 100755 tests/qemu-iotests/tests/throttle
 create mode 100644 tests/qemu-iotests/tests/throttle.out

-- 
2.35.1