[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH 6/7] block: add BlockDevOptionsThrottle to QAPI
From: |
Manos Pitsidianakis |
Subject: |
[Qemu-block] [PATCH 6/7] block: add BlockDevOptionsThrottle to QAPI |
Date: |
Fri, 14 Jul 2017 12:45:20 +0300 |
This is needed to configure throttle filter driver nodes with QAPI.
Signed-off-by: Manos Pitsidianakis <address@hidden>
---
qapi/block-core.json | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index 1084158b6a..9aaad97c54 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -2210,6 +2210,7 @@
# Drivers that are supported in block device operations.
#
# @vxhs: Since 2.10
+# @throttle: Since 2.10
#
# Since: 2.9
##
@@ -2219,7 +2220,7 @@
'host_device', 'http', 'https', 'iscsi', 'luks', 'nbd', 'nfs',
'null-aio', 'null-co', 'parallels', 'qcow', 'qcow2', 'qed',
'quorum', 'raw', 'rbd', 'replication', 'sheepdog', 'ssh',
- 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat', 'vxhs' ] }
+ 'throttle', 'vdi', 'vhdx', 'vmdk', 'vpc', 'vvfat', 'vxhs' ] }
##
# @BlockdevOptionsFile:
@@ -3084,6 +3085,21 @@
'*tls-creds': 'str' } }
##
+# @BlockdevOptionsThrottle:
+#
+# Driver specific block device options for the throttle driver
+#
+# @throttling-group: the name of the throttling group to use
+# @file: reference to or definition of the data source block device
+# @limits: ThrottleLimits options
+# Since: 2.10
+##
+{ 'struct': 'BlockdevOptionsThrottle',
+ 'data': { '*throttling-group': 'str',
+ 'file' : 'BlockdevRef',
+ '*limits' : 'ThrottleLimits'
+ } }
+##
# @BlockdevOptions:
#
# Options for creating a block device. Many options are available for all
@@ -3144,6 +3160,7 @@
'replication':'BlockdevOptionsReplication',
'sheepdog': 'BlockdevOptionsSheepdog',
'ssh': 'BlockdevOptionsSsh',
+ 'throttle': 'BlockdevOptionsThrottle',
'vdi': 'BlockdevOptionsGenericFormat',
'vhdx': 'BlockdevOptionsGenericFormat',
'vmdk': 'BlockdevOptionsGenericCOWFormat',
@@ -3883,3 +3900,4 @@
'data' : { 'parent': 'str',
'*child': 'str',
'*node': 'str' } }
+
--
2.11.0
- [Qemu-block] [PATCH 0/7] add throttle block driver filter, Manos Pitsidianakis, 2017/07/14
- [Qemu-block] [PATCH 6/7] block: add BlockDevOptionsThrottle to QAPI,
Manos Pitsidianakis <=
- [Qemu-block] [PATCH 7/7] block: add throttle block filter driver interface tests, Manos Pitsidianakis, 2017/07/14
- [Qemu-block] [PATCH 1/7] block: move ThrottleGroup membership to ThrottleGroupMember, Manos Pitsidianakis, 2017/07/14
- [Qemu-block] [PATCH 2/7] block: add aio_context field in ThrottleGroupMember, Manos Pitsidianakis, 2017/07/14
- [Qemu-block] [PATCH 3/7] block: tidy ThrottleGroupMember initializations, Manos Pitsidianakis, 2017/07/14
- [Qemu-block] [PATCH 4/7] block: convert ThrottleGroup to object with QOM, Manos Pitsidianakis, 2017/07/14