From ee2bdc33c913b7d765baa5aa338c29fb30a05c9a Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Tue, 4 Aug 2015 11:22:12 +0100 Subject: throttle: refuse bps_max/iops_max without bps/iops The bps_max/iops_max values are meaningless without corresponding bps/iops values. Reported an error if bps_max/iops_max is given without bps/iops. Signed-off-by: Stefan Hajnoczi Reviewed-by: Alberto Garcia Message-id: 1438683733-21111-2-git-send-email-stefanha@redhat.com --- include/qemu/throttle.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h index 995b2d5..12faaad 100644 --- a/include/qemu/throttle.h +++ b/include/qemu/throttle.h @@ -114,6 +114,8 @@ bool throttle_conflicting(ThrottleConfig *cfg); bool throttle_is_valid(ThrottleConfig *cfg); +bool throttle_max_is_missing_limit(ThrottleConfig *cfg); + void throttle_config(ThrottleState *ts, ThrottleTimers *tt, ThrottleConfig *cfg); -- cgit v1.1