block: add clock_type field to ThrottleGroup
commitdbe824cc57fbc93dc7ee53287e06c101b20e078b
authorManos Pitsidianakis <el13635@mail.ntua.gr>
Sun, 2 Jul 2017 10:06:45 +0000 (2 13:06 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 18 Jul 2017 13:14:35 +0000 (18 15:14 +0200)
tree24b3ee1bec73ec405e02a26a4631603d67740cd3
parentb1e1fa0c3afc7f671fbc24645bdf67949a5657e5
block: add clock_type field to ThrottleGroup

Clock type in throttling is currently inferred by the ThrottleTimer's
clock type even though it is a per-ThrottleGroup property; it doesn't
make sense to have different clock types in the same group. Moving this
to a field in ThrottleGroup can simplify some of the throttle functions.

Signed-off-by: Manos Pitsidianakis <el13635@mail.ntua.gr>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/throttle-groups.c
fsdev/qemu-fsdev-throttle.c
include/qemu/throttle.h
tests/test-throttle.c
util/throttle.c