From nobody Mon Dec 15 14:43:29 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=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1742319382; cv=none; d=zohomail.com; s=zohoarc; b=WWS6sGgVibjowdnZ6OQmEwL+FDTOVwBVGFUpdngNnAnIACUhXAzKog5le7udxtGbW67PJpll33gtD9U3vGSvDbRpLNw4HCrwuznbQXk0xNqkT+7x43tvEizo9TGfdY8Ho7ZcODeHK64gnfguuxeuvLTBSs4InNIzfUMLiihvzeg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742319382; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id; bh=MKpU98BjGvemeTZN7RzKk71X/6ErAZII4FP1IfnpNYo=; b=cnIQfIxSgjAIAYOhcYgAcQLR31x8MU2Qam7pqFW9aPAV1E6SB2PkGdkqTgbv/MMLytk5sbm5kv75xbLcc6v3oRZP4XXaOQQAlfqCA7I0ldD72Pev0DJ6Nq+UQgOwn7t5R7tmmLYrNYQJ6akFkUTugq+nd2ZBU6iPHi4ZfTHbpLE= ARC-Authentication-Results: i=1; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1742319382555679.3664616803484; Tue, 18 Mar 2025 10:36:22 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 9B0881658; Tue, 18 Mar 2025 13:36:21 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 7FCFA16DB; Tue, 18 Mar 2025 13:34:47 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 42B3315C7; Tue, 18 Mar 2025 13:34:41 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 989A515CB for ; Tue, 18 Mar 2025 13:34:40 -0400 (EDT) Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-586-xx4yT8LaNj6Xlp30K0XIgQ-1; Tue, 18 Mar 2025 13:34:37 -0400 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 291FF195608A; Tue, 18 Mar 2025 17:34:36 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.45.242.6]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CA2FA3001D11; Tue, 18 Mar 2025 17:34:34 +0000 (UTC) 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_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, 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=redhat.com; s=mimecast20190719; t=1742319280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=maYuh6T2RzFWtmh9+60e6ovbEIUPDd5ME8tj8mS6paA=; b=UX/1pKzVBZHBk/ftufuI2VzbxJ46bmbAGygSPzC4Za6IIFjHudxptGQV/ObsCGMa/1sOoF LvqK9w6PP2do7vAnuASd2QPEoicsPyGbzKDMJE770Lc93v4yXhSemrm/zPbOotbjXqGkGR 0d3Slu0Gv/ISzs5gG885bGOfUl0MfYk= X-MC-Unique: xx4yT8LaNj6Xlp30K0XIgQ-1 X-Mimecast-MFC-AGG-ID: xx4yT8LaNj6Xlp30K0XIgQ_1742319276 To: devel@lists.libvirt.org Subject: [PATCH v9 01/17] schema: Add new domain elements to support multiple throttle groups Date: Tue, 18 Mar 2025 18:34:15 +0100 Message-ID: <13cdfebf411fb4c81a335509fa7b62a73b4c102f.1742318898.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: EH0nHIdaPv-kB45qRMmSYvnBZeqrUVEEUMd6Zb3Qb9Y_1742319276 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: EBGGZ2EI3AEFVTHGKSSYSJJT7LZE6M76 X-Message-ID-Hash: EBGGZ2EI3AEFVTHGKSSYSJJT7LZE6M76 X-MailFrom: pkrempa@redhat.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 , harikumar.rajkumar@ibm.com 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: From: Peter Krempa via Devel Reply-To: Peter Krempa X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1742319385603019100 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 Signed-off-by: Harikumar Rajkumar Reviewed-by: Peter Krempa Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- 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 9c6bb08726..1209c76995 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -2000,6 +2000,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). +Disk Throttle Group Management +------------------------------ + +:since:`Since 11.2.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. Hypervisor features ------------------- diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index 7ef45a1731..25eb195635 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -71,6 +71,7 @@ + @@ -6867,6 +6868,23 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +