From nobody Mon Feb 9 09:34:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@gnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@gnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 150695498538595.30743923022658; Mon, 2 Oct 2017 07:36:25 -0700 (PDT) Received: from localhost ([::1]:52614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz1pI-0006qC-IK for importer@patchew.org; Mon, 02 Oct 2017 10:36:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz1nO-0005ZB-4f for qemu-devel@nongnu.org; Mon, 02 Oct 2017 10:34:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz1nK-0007tx-1j for qemu-devel@nongnu.org; Mon, 02 Oct 2017 10:34:10 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:33266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dz1nJ-0007ti-OV for qemu-devel@nongnu.org; Mon, 02 Oct 2017 10:34:05 -0400 Received: by mail-wr0-x243.google.com with SMTP id z96so2646525wrb.0 for ; Mon, 02 Oct 2017 07:34:05 -0700 (PDT) Received: from localhost.localdomain.localdomain ([217.110.131.66]) by smtp.gmail.com with ESMTPSA id b89sm28440668wrd.42.2017.10.02.07.34.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Oct 2017 07:34:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0w5v6rB769+z/nD7wJAwaPqhcU70kPOHmfMh2+Q10u4=; b=VtKhLzdbzoyrBuR2WLf6hHHy/Sq20GLq/Rgu/znJ72A2edyxISmxJdWqwDZe0eu3ac Y8Tk9XKT98bg2fyDkLmHtpm2LB1cWkdavIpChlcxzP68z7if0EZWC9L3mcGcr2Nh+8jq znD6aKCFhwyAk412AW3rXrbTfG77J4X5If4NXKl+z1xR0AtvlcbTIX/aztNnCuEDto/P Quf25ovCBQ9ntNFjLW4rzwqsl2uofLz4/FGBe2rNNQ0OJ5eOTanIAWrWcAOK5rWkfwlA LOhUxEm+S6Jc5dB3YzWBKcQk9WNoA2aFeqOnfpOUvaSDZkYRgtwIQIecb8dczGtc0/yD TeUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0w5v6rB769+z/nD7wJAwaPqhcU70kPOHmfMh2+Q10u4=; b=puDofaAxMmlVCLjho/2RS2Pe/0RwYsJCBbl7sB9pqm4shSSGVlrZTg/VSGs0v/DHSR PYVOkUoXy5kzNHBUqq68shPIzff4SMJaOiSZS9cQ68FGlB2cNGTgrGZHZytNsJRBoEEW gIchieCA8mrYd+WT27fuoMWUyISrABqvV1+kkvae9vbg8oyF3u2OPNnd1Abj9wXE7dvr Mk3QLGaRzpVjMBNGT/cvlZrMUR6y8mlbKOR9DzM4gn124Jdo5XY5PmyFV+kaw47A/fbZ bBGJYN+s2ip0AW0Aio84u9M66D6xXxadS5AFE0bYr+IbEAhB71kJfHSK/jMpvd+kHtBY Mrog== X-Gm-Message-State: AMCzsaVKgr/WoeKLmyvmzHPCMuWQLlO6PUsGiJZu77j9txWyHvC6pUz1 9j8HV4wH+sfVRVrrPJWdvbs= X-Google-Smtp-Source: AOwi7QD9V2biNF63zhhL9AtI1IRqaCCCldlhG8+I5CmqUXg5wIF/j5WRHiKPpoPNCNR4g8paGhmBGQ== X-Received: by 10.223.136.218 with SMTP id g26mr2606559wrg.86.1506954844654; Mon, 02 Oct 2017 07:34:04 -0700 (PDT) From: Pradeep Jagadeesh X-Google-Original-From: Pradeep Jagadeesh To: "eric blake" , "greg kurz" Date: Mon, 2 Oct 2017 10:33:28 -0400 Message-Id: <1506954812-6552-3-git-send-email-pradeep.jagadeesh@huawei.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1506954812-6552-1-git-send-email-pradeep.jagadeesh@huawei.com> References: <1506954812-6552-1-git-send-email-pradeep.jagadeesh@huawei.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::243 Subject: [Qemu-devel] [PATCH v13 2/6] qmp: Use ThrottleLimits structure X-BeenThere: qemu-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org, jani kokkonen , alberto garcia , Pradeep Jagadeesh , Manos Pitsidianakis Errors-To: qemu-devel-bounces+importer=patchew.org@gnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This patch factors out code to use the ThrottleLimits structure. Signed-off-by: Pradeep Jagadeesh --- 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 750bb0c..f1d2c13 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' } } =20 ## # @ThrottleLimits: --=20 1.8.3.1