[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v12 2/6] qmp: Use ThrottleLimits structure
From: |
Pradeep Jagadeesh |
Subject: |
[Qemu-devel] [PATCH v12 2/6] qmp: Use ThrottleLimits structure |
Date: |
Fri, 22 Sep 2017 08:03:41 -0400 |
This patch factors out code to use the ThrottleLimits
structure.
Signed-off-by: Pradeep Jagadeesh <address@hidden>
---
qapi/block-core.json | 75 +++-------------------------------------------------
1 file changed, 3 insertions(+), 72 deletions(-)
diff --git a/qapi/block-core.json b/qapi/block-core.json
index bb11815..5ca4597 100644
--- a/qapi/block-core.json
+++ b/qapi/block-core.json
@@ -1824,86 +1824,17 @@
#
# A set of parameters describing block throttling.
#
-# @device: Block device name (deprecated, use @id instead)
-#
# @id: The name or QOM path of the guest device (since: 2.8)
#
-# @bps: total throughput limit in bytes per second
-#
-# @bps_rd: read throughput limit in bytes per second
-#
-# @bps_wr: write throughput limit in bytes per second
-#
-# @iops: total I/O operations per second
-#
-# @iops_rd: read I/O operations per second
-#
-# @iops_wr: write I/O operations per second
-#
-# @bps_max: total throughput limit during bursts,
-# in bytes (Since 1.7)
-#
-# @bps_rd_max: read throughput limit during bursts,
-# in bytes (Since 1.7)
-#
-# @bps_wr_max: write throughput limit during bursts,
-# in bytes (Since 1.7)
-#
-# @iops_max: total I/O operations per second during bursts,
-# in bytes (Since 1.7)
-#
-# @iops_rd_max: read I/O operations per second during bursts,
-# in bytes (Since 1.7)
-#
-# @iops_wr_max: write I/O operations per second during bursts,
-# in bytes (Since 1.7)
-#
-# @bps_max_length: maximum length of the @bps_max burst
-# period, in seconds. It must only
-# be set if @bps_max is set as well.
-# Defaults to 1. (Since 2.6)
-#
-# @bps_rd_max_length: maximum length of the @bps_rd_max
-# burst period, in seconds. It must only
-# be set if @bps_rd_max is set as well.
-# Defaults to 1. (Since 2.6)
-#
-# @bps_wr_max_length: maximum length of the @bps_wr_max
-# burst period, in seconds. It must only
-# be set if @bps_wr_max is set as well.
-# Defaults to 1. (Since 2.6)
-#
-# @iops_max_length: maximum length of the @iops burst
-# period, in seconds. It must only
-# be set if @iops_max is set as well.
-# Defaults to 1. (Since 2.6)
-#
-# @iops_rd_max_length: maximum length of the @iops_rd_max
-# burst period, in seconds. It must only
-# be set if @iops_rd_max is set as well.
-# Defaults to 1. (Since 2.6)
-#
-# @iops_wr_max_length: maximum length of the @iops_wr_max
-# burst period, in seconds. It must only
-# be set if @iops_wr_max is set as well.
-# Defaults to 1. (Since 2.6)
-#
-# @iops_size: an I/O size in bytes (Since 1.7)
+# @device: Block device name (deprecated, use @id instead)
#
# @group: throttle group name (Since 2.4)
#
# Since: 1.1
##
{ 'struct': 'BlockIOThrottle',
- 'data': { '*device': 'str', '*id': 'str', 'bps': 'int', 'bps_rd': 'int',
- 'bps_wr': 'int', 'iops': 'int', 'iops_rd': 'int', 'iops_wr': 'int',
- '*bps_max': 'int', '*bps_rd_max': 'int',
- '*bps_wr_max': 'int', '*iops_max': 'int',
- '*iops_rd_max': 'int', '*iops_wr_max': 'int',
- '*bps_max_length': 'int', '*bps_rd_max_length': 'int',
- '*bps_wr_max_length': 'int', '*iops_max_length': 'int',
- '*iops_rd_max_length': 'int', '*iops_wr_max_length': 'int',
- '*iops_size': 'int', '*group': 'str' } }
+ 'base': 'ThrottleLimits',
+ 'data': { '*device': 'str', '*id': 'str', '*group': 'str' } }
##
# @ThrottleLimits:
--
1.8.3.1
- [Qemu-devel] [PATCH v12 0/6] fsdev: qmp interface for io throttling, Pradeep Jagadeesh, 2017/09/22
- [Qemu-devel] [PATCH v12 2/6] qmp: Use ThrottleLimits structure,
Pradeep Jagadeesh <=
- [Qemu-devel] [PATCH v12 4/6] hmp: create a throttle initialization function for code reuse, Pradeep Jagadeesh, 2017/09/22
- [Qemu-devel] [PATCH v12 1/6] throttle: factor out duplicate code, Pradeep Jagadeesh, 2017/09/22
- [Qemu-devel] [PATCH v12 3/6] qmp: factor out throttle code to reuse code, Pradeep Jagadeesh, 2017/09/22
- [Qemu-devel] [PATCH v12 6/6] fsdev: hmp interface for throttling, Pradeep Jagadeesh, 2017/09/22
- [Qemu-devel] [PATCH v12 5/6] fsdev: QMP interface for throttling, Pradeep Jagadeesh, 2017/09/22