From nobody Tue Nov 18 07:33:04 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1739984566952218.63965116081408; Wed, 19 Feb 2025 09:02:46 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id B16871DAD; Wed, 19 Feb 2025 12:02:45 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 0A3041BA2; Wed, 19 Feb 2025 12:01:43 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 77D681996; Wed, 19 Feb 2025 12:01:39 -0500 (EST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 8D3A7189D for ; Wed, 19 Feb 2025 12:01:38 -0500 (EST) Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-219f8263ae0so130564835ad.0 for ; Wed, 19 Feb 2025 09:01:38 -0800 (PST) Received: from localhost.localdomain ([2001:4490:4ea9:8374:8512:e327:fdaf:a56e]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-220d558fe3asm106651545ad.234.2025.02.19.09.01.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 19 Feb 2025 09:01:36 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739984497; x=1740589297; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/K+tKzWmmXHVYfoHoRjryC6QB/PXcpd3UJWsKrP+aZM=; b=P5s6bH8ncxqIXPn+D/z/yXex5oHF1dy2hWOnV28xACkRbAwYY2bdPxHwmS2JNOIg1d Q3RJ1/drw1qY1mq04Waz/M7C23E1MH/MweBYwY8yUkTxJZ4I7TNjeUpPZu7aNXg98n/g WS1E+69tnfWJgCWTi7/2HHjRnCDxkBx6rCY0dJnn2LL67C6w9XlqJ/k43px8g0PKOwEk Zb7ov11uCzj+jO9Ae2LL1gdNHKurQtrZ/vW4CihqiBu52QJ03G6Nn1DuRDU5MLIC1e0C u2wsCmv2rAEYY9TuNVDADKx/mdBzcJIjEY2FVCJezDF59UGGVM8EivHMSGMvfciW2ztO lhKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739984497; x=1740589297; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/K+tKzWmmXHVYfoHoRjryC6QB/PXcpd3UJWsKrP+aZM=; b=cHSAgMC8B9WOUh1FoeHnTxi4t6vI/y+eMNKjElf7B4VLy8qkft3lCHCs4byLsCzcdk b5NW8DaiO6Gdz7Hea0mKvssplgS2l7mw/ovGEGvBM2RIGf2k2J3Abt4igmbVZGhNQqYH xkfkhIHL1hI9CXh9zcpUYNGZlZ1gpNPgQx9WsXpflVurCe1dt5DG9CwdzCWMZlgjTWZT fIcLT5S7gCd76BSogLRWoBDEaMaQq52jJzGSVopd4iI29zHy7Loe04y6F3Qy8pY9MMGi RV5/4lzTZZZPGbOGvxMeIN80rup9sTvy97vrwy/F+U0uQlRnULOkQMX/PPHdgH+ULBQ/ vMSg== X-Gm-Message-State: AOJu0Yzi9K/ao7eFrbFvhuAEFliLrQVhyVIhHf4WmzEVsQxxt+GNZRgs ji6J9OC7LWs3YDAWKqNMItSSHDJKQ4vQj2a13Yodz/fQklXyFgTTBvEIIbqz X-Gm-Gg: ASbGncsPZ6QL5T0fIdJMLI+IpjGaCbReFYLwvaHYy/q/UCOogiyU0okFKpwjSaw1JTR iGcWXO0ELuk9eH+8U5tOof4cOQMWjpZwJYc/Jl/6n72dYLGZfM91A5rVcVkWVgvSAZsxEeN1JIk jOgH0Om6tcnGoAq7aelnhaHji0s2dk3RTJ/vxPrt6JdGrRm+Nl6whVi+xWodqm5NFYmUI85e5IX eTubcu5NxAORq5rolhFNF1x9uIefmIlF7Tm44ZF9Y9EH23/70cSz/amQG35srfuJYh9li3E4nAr v0ypzVyZWEzinWhXPmFvZAiGrm8rqwhDQOXp66dbqFEiD0uVHi8tbvyxPA== X-Google-Smtp-Source: AGHT+IHVwLDnX17NFQmp4zmzVLLXmzmqdFhm2PRYTTJeZqWksVzTNwyBc51JkdSkdv98zykqjyiMiw== X-Received: by 2002:a17:902:e546:b0:21f:522b:690f with SMTP id d9443c01a7336-221040d81femr302694345ad.46.1739984496900; Wed, 19 Feb 2025 09:01:36 -0800 (PST) From: Harikumar Rajkumar To: devel@lists.libvirt.org Subject: [PATCH v8 01/18] schema: Add new domain elements to support multiple throttle groups Date: Wed, 19 Feb 2025 22:27:05 +0530 Message-Id: <20250219165722.26348-2-harirajkumar230@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250219165722.26348-1-harirajkumar230@gmail.com> References: <20250219165722.26348-1-harirajkumar230@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: QVUA6VWSN44D2NGLXP77K3K5DQMCP72O X-Message-ID-Hash: QVUA6VWSN44D2NGLXP77K3K5DQMCP72O X-MailFrom: harirajkumar230@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: sanjeev.ranjan@ibm.com, harikumar.rajkumar@ibm.com, earulana@in.ibm.com, Chun Feng Wu , Harikumar Rajkumar X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1739984568564019100 Content-Type: text/plain; charset="utf-8" From: Chun Feng Wu Introduce schema for defining '' element which configures throttling groups which can be configured for multiple disks. * Refactor "diskIoTune" to extract common schema "iotune" * Add new elements '' * contains defintion, which references "iotune" Signed-off-by: Chun Feng Wu * Update the version to 11.1.0. Signed-off-by: Harikumar Rajkumar Reviewed-by: Peter Krempa --- docs/formatdomain.rst | 26 +++ src/conf/schemas/domaincommon.rng | 274 ++++++++++++++++-------------- 2 files changed, 174 insertions(+), 126 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 381bf84f67..f8df50ff4a 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -1972,6 +1972,32 @@ advertisements to the guest OS. (NB: Only qemu drive= r support) the guest OS itself can choose to circumvent the unavailability of the = sleep states (e.g. S4 by turning off completely). =20 +Disk Throttle Group Management +------------------------------ + +:since:`Since 11.1.0` it is possible to create multiple named throttle gro= ups +and then reference them within ``throttlefilters``(sub-element of ``disk``= element) +to form filter chain in QEMU for specific disk. The limits(throttlegroups)= are +shared within domain, hence the same group can be referenced by different = filters. + +:: + + + ... + + + limit0 + 10000000 + 400000 + 100000 + + + ... + + +``throttlegroup`` + It has the same sub-elements as ``iotune`` (See `Hard drives, floppy di= sks, CDROMs`_), + The difference is that is required. =20 Hypervisor features ------------------- diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index 3328a63205..a675746311 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -51,6 +51,7 @@ + @@ -6863,6 +6864,23 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +