From nobody Wed Dec 17 08:52:33 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 173935661819916.32885468346933; Wed, 12 Feb 2025 02:36:58 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 9C6A119DF; Wed, 12 Feb 2025 05:36:57 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 4C5DF1CAB; Wed, 12 Feb 2025 05:35:56 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 12E7619CA; Wed, 12 Feb 2025 05:35:52 -0500 (EST) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (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 41CF219C6 for ; Wed, 12 Feb 2025 05:35:51 -0500 (EST) Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2fa1c093d6eso8018684a91.0 for ; Wed, 12 Feb 2025 02:35:51 -0800 (PST) Received: from localhost.localdomain ([117.251.37.46]) by smtp.googlemail.com with ESMTPSA id 98e67ed59e1d1-2fbf98b3277sm1147688a91.7.2025.02.12.02.35.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 12 Feb 2025 02:35:49 -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=1739356549; x=1739961349; 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=uVZ6pc4QW5usC0oULB6wjRv7rEO4yM/YnLi7Vt60Ijw=; b=fsamalqbLutNFTEWWTfFHgyVvsV+s1byuNtEw0KQv0BckD5Vn4j0RRZDWSarMHF3T7 ZdkFaC1aOH98BOJszoT50qDBe7wjDJU19n4455MEnN4+2hMkRNO62reZdBMQcsVq6Trb TdLlNE2G0p3gz8zQCLehP1Va7WEguCkIvakOLBHmvn4XRhIvPhO0Vr6GD+LWP3PXswyv 2QYJ0WFdnjH9o39Wg/LfliwS8l8izFSU7L0cdq38w0SCOs5YYXLo63ossExpguVzbc63 Qe9WeobF9or5aAB8UtxjJVeZKIzs7TopbpYwogfSh9T8ttgh4kiu8y0TlUEin50kufQo UBdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739356549; x=1739961349; 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=uVZ6pc4QW5usC0oULB6wjRv7rEO4yM/YnLi7Vt60Ijw=; b=O44up3pSpDrw4OffxRUkTakkQIepKc1fKTvuCHafVZ737uqULsNmB66NevKSzVNPx7 /eC0Jcrhpa7xadtQEqDha8cTEMSYxQ5s8s5PRiVRQjMbZvCMXCRPNOfdv9fsgVtPKBZM 8MfDoXuT/ur6QT8VSkvmIAvoBPtUmuxkB44z1wJRH+buzKjyd2OoU1kVLFGREJVnyx59 B1baLKjpk0KobAu6E34YWpw7tgSY74nj4djK2JImuwBpPiyY4jaFjcdbUzCNuJnhLKJ/ PJ2v37/YbiXkfm+AgDyWTZE7kV6G43oXqGsXzIfK1r2ox53NdWl1cyLyjt7ZgJrs66a9 BREA== X-Gm-Message-State: AOJu0Yzehs+lboDzmRhnH40RTCemYWsytI/ilfNsIbEfFq8aQi0tSaq/ jIxQiq00t/AkdxiP2gcuANPMDn1tFnfRPiXdxdKr4X10gTYIhS5hP4aMCtEi X-Gm-Gg: ASbGnctY1eBlE/uS70ywGl8kjh6UWYZQ46MFT1UX0HV+3y9e+kI/eMCE4HXoOAbmoVk PXBAeITHeA2yLJWEuuKbdlQbtCd4U69z2STG3who66h/2Z9lgkx7lXOJh5i/LOsTVtzaHNSd8ee aKp+wf2UNLTGGu7Dc1YzOC5uxom8cTywpqLMtEZmyGYzKE8gwNO747Qngv6G6ZsQ6a/QwgbqRkD nndMFSGOvSnie/9gecS10vHbvjYoF2DoMs9O5kF8WTXRznhZtdKUyxdzS5wFjfIf9/UoBRC6Uql aMR/dRsW/JE5Zlc1ey+oz45VPmxeoR4ssi2NmFH64o92/Q== X-Google-Smtp-Source: AGHT+IGQPIDn3yXMy8rDwTOqhlOkWPnm0jjoDh1MDNgQmJeqw4iVmZPw4rSjEXpTmmEoj4vn0NZGDQ== X-Received: by 2002:a17:90b:4f8b:b0:2ee:d7d3:3008 with SMTP id 98e67ed59e1d1-2fbf5bf76d7mr5182822a91.12.1739356549498; Wed, 12 Feb 2025 02:35:49 -0800 (PST) From: Harikumar Rajkumar To: devel@lists.libvirt.org Subject: [PATCH v7 01/18] schema: Add new domain elements to support multiple throttle groups Date: Wed, 12 Feb 2025 16:05:20 +0530 Message-Id: <20250212103537.26352-2-harirajkumar230@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20250212103537.26352-1-harirajkumar230@gmail.com> References: <20250212103537.26352-1-harirajkumar230@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: HNMSQUGG3QIL64JY43FSB4YMKIDTAOUL X-Message-ID-Hash: HNMSQUGG3QIL64JY43FSB4YMKIDTAOUL 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: harikumar.rajkumar@ibm.com, sanjeev.ranjan@ibm.com, earulana@in.ibm.com, 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: 1739356625564019000 Content-Type: text/plain; charset="utf-8" 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: Harikumar Rajkumar --- 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 83aeaa32c2..a49d75593f 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 96cedb85e8..58a0c3444b 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -51,6 +51,7 @@ + @@ -6833,6 +6834,23 @@ + + + + + + + + + + + + + + +