diff options
| author | Stefan Hajnoczi | 2015-08-04 12:22:12 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2015-08-05 13:53:48 +0200 |
| commit | ee2bdc33c913b7d765baa5aa338c29fb30a05c9a (patch) | |
| tree | 265d6b583e53dd9341919bea5233998b61801f6d /include | |
| parent | Merge remote-tracking branch 'remotes/ehabkost/tags/x86-pull-request' into st... (diff) | |
| download | qemu-ee2bdc33c913b7d765baa5aa338c29fb30a05c9a.tar.gz qemu-ee2bdc33c913b7d765baa5aa338c29fb30a05c9a.tar.xz qemu-ee2bdc33c913b7d765baa5aa338c29fb30a05c9a.zip | |
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 <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-id: 1438683733-21111-2-git-send-email-stefanha@redhat.com
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/throttle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu/throttle.h b/include/qemu/throttle.h index 995b2d5957..12faaad959 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); |
