[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PATCH v3 6/7] block: add BlockDevOptionsThrottle to QAPI
From: |
Manos Pitsidianakis |
Subject: |
[Qemu-block] [PATCH v3 6/7] block: add BlockDevOptionsThrottle to QAPI |
Date: |
Mon, 31 Jul 2017 12:54:42 +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 0bdc69aa5f..f5ce67c4fb 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -2222,6 +2222,7 @@
# Drivers that are supported in block device operations.
#
# @vxhs: Since 2.10
+# @throttle: Since 2.11
#
# Since: 2.9
##
@@ -2231,7 +2232,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:
@@ -3095,6 +3096,22 @@
'*tls-creds': 'str' } }
##
+# @BlockdevOptionsThrottle:
+#
+# Driver specific block device options for the throttle driver
+#
+# @throttle-group: the name of the throttle-group object to use. It will be
+# created if it doesn't already exist
+# @file: reference to or definition of the data source block device
+# @limits: ThrottleLimits options
+# Since: 2.11
+##
+{ 'struct': 'BlockdevOptionsThrottle',
+ 'data': { '*throttle-group': 'str',
+ 'file' : 'BlockdevRef',
+ '*limits' : 'ThrottleLimits'
+ } }
+##
# @BlockdevOptions:
#
# Options for creating a block device. Many options are available for all
@@ -3155,6 +3172,7 @@
'replication':'BlockdevOptionsReplication',
'sheepdog': 'BlockdevOptionsSheepdog',
'ssh': 'BlockdevOptionsSsh',
+ 'throttle': 'BlockdevOptionsThrottle',
'vdi': 'BlockdevOptionsGenericFormat',
'vhdx': 'BlockdevOptionsGenericFormat',
'vmdk': 'BlockdevOptionsGenericCOWFormat',
--
2.11.0
- [Qemu-block] [PATCH v3 0/7] add throttle block driver filter, Manos Pitsidianakis, 2017/07/31
- [Qemu-block] [PATCH v3 3/7] block: tidy ThrottleGroupMember initializations, Manos Pitsidianakis, 2017/07/31
- [Qemu-block] [PATCH v3 2/7] block: add aio_context field in ThrottleGroupMember, Manos Pitsidianakis, 2017/07/31
- [Qemu-block] [PATCH v3 5/7] block: add throttle block filter driver, Manos Pitsidianakis, 2017/07/31
- [Qemu-block] [PATCH v3 4/7] block: convert ThrottleGroup to object with QOM, Manos Pitsidianakis, 2017/07/31
- [Qemu-block] [PATCH v3 6/7] block: add BlockDevOptionsThrottle to QAPI,
Manos Pitsidianakis <=
- [Qemu-block] [PATCH v3 7/7] block: add throttle block filter driver interface tests, Manos Pitsidianakis, 2017/07/31
- [Qemu-block] [PATCH v3 1/7] block: move ThrottleGroup membership to ThrottleGroupMember, Manos Pitsidianakis, 2017/07/31