From nobody Fri Dec 19 17:37:52 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=1742319345; cv=none; d=zohomail.com; s=zohoarc; b=DClJD/CMuFgWXBMn0rWtFzWvTmWJvQP5Msz3l8dWVNMaGiNKW8uvy2VIDRNtsXnePD3JFntuYUQjNsTow4nL8fa4PowZ/PmHsFSpCsLUWclh1PtM9Yg4TVF1YpaNHkcK9Vzs8q7sOWWx1H+BSea2IQtxu6O0KHQ/1cjV7SJsdxI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1742319345; 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=SGEM5V6DPh2TeP6O/Y0LFLVOuGUbb16l1sEH/LgtzBk=; b=d/JWhb01djj7fdPwgEIhUVg1cmFwUH8VAfWzVLAizLSbgd4XXAqngiWJZuY46xQrlV7yO5qCPz6pZn+dTc8u3Zyxp9bPqu3yC0AX4I3Jgz/qsNwSHZbT4tAUgu0E8HDt9ggAqxWiXzM6l/9WyB1MQjY/7JHJrYfroVdzlcjziYY= 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 1742319345463256.05055877771156; Tue, 18 Mar 2025 10:35:45 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id D31F916F8; Tue, 18 Mar 2025 13:35:44 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 8431616E6; Tue, 18 Mar 2025 13:34:44 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 0D54D15CC; 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.129.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 874321394 for ; Tue, 18 Mar 2025 13:34:40 -0400 (EDT) Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-287-7wzXjU4RN6eqOswQTK1K-g-1; Tue, 18 Mar 2025 13:34:39 -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-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0CD3E1800267; Tue, 18 Mar 2025 17:34:38 +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 AB12D3001D0E; Tue, 18 Mar 2025 17:34:36 +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_H5, 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=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=fZMSK+7qdr9jXuv7s53UUpIwUBTDjAWgkEnJeTuPnXw=; b=TpF+3XSjp3DBHBPWjwfB8BmxXH51ibnCP+6ie3BGsqzrDm9dFVJBsNw9m7BdSiqa2PI2Xh bkidnefNhIKvqreWQr8/cbpziaCHJe0ToQ5eAwGwFIQNt0Q0GuZCbLAiWJ8wOs6QZw33oO 20OENlnJ9FdUYsxafXhLea98Z3eOyCo= X-MC-Unique: 7wzXjU4RN6eqOswQTK1K-g-1 X-Mimecast-MFC-AGG-ID: 7wzXjU4RN6eqOswQTK1K-g_1742319278 To: devel@lists.libvirt.org Subject: [PATCH v9 02/17] schema: Add new domain elements to support multiple throttle filters Date: Tue, 18 Mar 2025 18:34:16 +0100 Message-ID: <18e33fcdde9e95df9f5d0f1e18784fa5cc39be1b.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: -XDIADVYHSQniPawzWIEy_voMu3tQgsyLua-72BLQRM_1742319278 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: RTHIKLCS4NGSPE4VNJVA2CVR6DN7R5WE X-Message-ID-Hash: RTHIKLCS4NGSPE4VNJVA2CVR6DN7R5WE 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: 1742319347225019000 Content-Type: text/plain; charset="utf-8" From: Chun Feng Wu Introduce schema for defining '' element which references throttling groups to form filter chain in qemu for specific disk * Add new elements '' * can include multiple throttlegroup references to form filter chain in qemu * Chained throttle filters feature in qemu is described at https://gitlab.com/qemu-project/qemu/blob/master/docs/throttle.txt Signed-off-by: Chun Feng Wu Signed-off-by: Harikumar Rajkumar Reviewed-by: Peter Krempa Signed-off-by: Peter Krempa --- docs/formatdomain.rst | 21 +++++++++++++++++++++ src/conf/schemas/domaincommon.rng | 19 ++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 1209c76995..8be0159230 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -2819,6 +2819,15 @@ paravirtualized driver is specified via the ``disk``= element. + + + + + + + + + ... @@ -3321,6 +3330,18 @@ paravirtualized driver is specified via the ``disk``= element. :since:`since after 0.4.4`; "sata" attribute value :since:`since 0.9.7`; "removable" attribute value :since:`since 1.1.3`; "rotation_rate" attribute value :since:`since 7.3.0` +``throttlefilters`` + The optional ``throttlefilters`` element provides the ability to provid= e additional + per-device throttle chain :since:`Since 11.2.0` + For example, if we have four different disks and we want to limit I/O f= or each one + and we also want to limit combined I/O of all four disks, we can levera= ge + ``throttlefilters`` to achieve this goal by setting two ``throttlefilte= r`` for + each disk: disk's own filter(e.g. limit2) and combined filter(e.g. limi= t012). + The order of such ``throttlefilter`` doesn't matter within ``throttlefi= lters``. + ``throttlefilters`` and ``iotune`` should be used exclusively. + + ``throttlefilter`` + The optional ``throttlefilter`` element is to reference defined thro= ttle group. ``iotune`` The optional ``iotune`` element provides the ability to provide additio= nal per-device I/O tuning, with values that can vary for each device (contr= ast diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincom= mon.rng index 25eb195635..ae2d0daad3 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -1630,7 +1630,10 @@ - + + + + @@ -6885,6 +6888,20 @@ + + + + + + + + + + + +