[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/18] qapi/qom: Add ObjectOptions for throttle-group
From: |
Kevin Wolf |
Subject: |
[PATCH 07/18] qapi/qom: Add ObjectOptions for throttle-group |
Date: |
Mon, 30 Nov 2020 13:25:27 +0100 |
This adds a QAPI schema for the properties of the throttle-group object.
The x-* properties are not represented in the schema. Their only purpose
is to make the nested options in 'limits' available for a command line
parser that doesn't support structs. Any parser that will use the QAPI
schema will supports structs, though, so they will not be needed in the
schema.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
---
qapi/block-core.json | 12 ++++++++++++
qapi/qom.json | 7 +++++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 04ad80bc1e..d7a4cdc11c 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -2478,6 +2478,18 @@
'*bps-write-max' : 'int', '*bps-write-max-length' : 'int',
'*iops-size' : 'int' } }
+##
+# @ThrottleGroupProperties:
+#
+# Properties for throttle-group objects.
+#
+# @limits: limits to apply for this throttle group
+#
+# Since: 6.0
+##
+{ 'struct': 'ThrottleGroupProperties',
+ 'data': { '*limits': 'ThrottleLimits' } }
+
##
# @block-stream:
#
diff --git a/qapi/qom.json b/qapi/qom.json
index f3d1a55cb8..8c9785d2dd 100644
--- a/qapi/qom.json
+++ b/qapi/qom.json
@@ -5,6 +5,7 @@
# See the COPYING file in the top-level directory.
{ 'include': 'authz.json' }
+{ 'include': 'block-core.json' }
{ 'include': 'common.json' }
##
@@ -435,7 +436,8 @@
'memory-backend-ram',
'rng-builtin',
'rng-egd',
- 'rng-random'
+ 'rng-random',
+ 'throttle-group'
] }
##
@@ -468,7 +470,8 @@
'memory-backend-ram': 'MemoryBackendProperties',
'rng-builtin': 'RngProperties',
'rng-egd': 'RngEgdProperties',
- 'rng-random': 'RngRandomProperties'
+ 'rng-random': 'RngRandomProperties',
+ 'throttle-group': 'ThrottleGroupProperties'
} }
##
--
2.28.0
- [PATCH 00/18] qapi/qom: QAPIfy object-add, Kevin Wolf, 2020/11/30
- [PATCH 01/18] qapi/qom: Add ObjectOptions for iothread, Kevin Wolf, 2020/11/30
- [PATCH 02/18] qapi/qom: Add ObjectOptions for authz-*, Kevin Wolf, 2020/11/30
- [PATCH 03/18] qapi/qom: Add ObjectOptions for cryptodev-*, Kevin Wolf, 2020/11/30
- [PATCH 06/18] qapi/qom: Add ObjectOptions for rng-*, deprecate 'opened', Kevin Wolf, 2020/11/30
- [PATCH 04/18] qapi/qom: Add ObjectOptions for dbus-vmstate, Kevin Wolf, 2020/11/30
- [PATCH 05/18] qapi/qom: Add ObjectOptions for memory-backend-*, Kevin Wolf, 2020/11/30
- [PATCH 08/18] qapi/qom: Add ObjectOptions for secret*, deprecate 'loaded', Kevin Wolf, 2020/11/30
- [PATCH 07/18] qapi/qom: Add ObjectOptions for throttle-group,
Kevin Wolf <=
- [PATCH 09/18] qapi/qom: Add ObjectOptions for tls-*, deprecate 'loaded', Kevin Wolf, 2020/11/30
- [PATCH 10/18] qapi/qom: Add ObjectOptions for can-*, Kevin Wolf, 2020/11/30
- [PATCH 11/18] qapi/qom: Add ObjectOptions for colo-compare, Kevin Wolf, 2020/11/30
- [PATCH 12/18] qapi/qom: Add ObjectOptions for filter-*, Kevin Wolf, 2020/11/30
- [PATCH 13/18] qapi/qom: Add ObjectOptions for pr-manager-helper, Kevin Wolf, 2020/11/30
- [PATCH 14/18] qapi/qom: Add ObjectOptions for sev-guest, Kevin Wolf, 2020/11/30
- [PATCH 15/18] qapi/qom: Add ObjectOptions for input-*, Kevin Wolf, 2020/11/30
- [PATCH 16/18] tests: Drop 'props' from object-add calls, Kevin Wolf, 2020/11/30
- [PATCH 17/18] qapi/qom: Drop deprecated 'props' from object-add, Kevin Wolf, 2020/11/30
- [PATCH 18/18] qapi/qom: QAPIfy object-add, Kevin Wolf, 2020/11/30