A bps_max/iops_max value without a corresponding bps/iops does nothing. Avoid confusing the user by refusing invalid inputs instead of silently ignoring them.
Stefan Hajnoczi (2): throttle: refuse bps_max/iops_max without bps/iops throttle: add throttle_max_is_missing_limit() test blockdev.c | 6 ++++++ include/qemu/throttle.h | 2 ++ tests/test-throttle.c | 21 +++++++++++++++++++++ util/throttle.c | 15 +++++++++++++++ 4 files changed, 44 insertions(+) -- 2.4.3