From nobody Sat Jan 4 23:24:57 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 1733750538169778.6504305268875; Mon, 9 Dec 2024 05:22:18 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id C598C12E6; Mon, 9 Dec 2024 08:22:15 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 91D95124E; Mon, 9 Dec 2024 08:19:54 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 897D711BE; Mon, 9 Dec 2024 07:42:25 -0500 (EST) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 E97CC11CD for ; Mon, 9 Dec 2024 07:42:24 -0500 (EST) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-21145812538so36083205ad.0 for ; Mon, 09 Dec 2024 04:42:24 -0800 (PST) Received: from localhost.localdomain ([120.60.110.156]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-2164d103993sm18113195ad.193.2024.12.09.04.42.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Dec 2024 04:42:22 -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.6 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=1733748143; x=1734352943; 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=jj17IVUjWwUqOCdxDVJ+Qy4o1HZPsT0hQxJpDWF976w=; b=meMyRWN20JNe/8bNysWjM0d2Vfod5AOVh9Im+U4mv+eJA2+i7H65oj7JRZtUcbslRM qcqToSj49wGUqvFfzos0ncGWAYim1kwjkXrrsofKqVjHr+JYewspWmQ0DWJi8gJdg3Eg ufdU+WL+b3k8WT42xL3Fw4dw1lyWfsXWoBkgnTmSxXcDQUvNzwZkaiFIogmsi+cR6Tw1 rWjmF4c8Wii2K0mFuXgcStn6On/29Sb98YU5R+Ef1pPa7W+Vt+VmPyI5wuoNSGWTe3HQ WzsAroNyglIgM/Ne9V4IEaZ7n/omH/gxmueVpeefdPJwdNO8MckYndFZ2TJdd2TvX2Ob x+8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733748143; x=1734352943; 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=jj17IVUjWwUqOCdxDVJ+Qy4o1HZPsT0hQxJpDWF976w=; b=FUYnodZxU03imiIP/WeCfZxMwQggQCR9YgXNe9geYFx6w5MfR+siLemkb4DDddgz8g nX+/oMeT7db+H1xPmhv3ChWnKzyjjchnHNyY7AVj3TAoy6RBy51+01lhjdX3UjX3Tver VMZ0zF/r9faPoavbSEiGpohcPmqhisXrb08utPnF4djeOY/oL0SW2bIm6bzBly4AsMd9 PQvj4uWF7A3h/PDiW2cufV0a1PLWuKVpUkS29//TLubSvasdkHP3EJGay1oQpOJ57f7T +z48tJ4y3QEhsp6PqiVkWrZ7ybO/fs4TpxWYB1sDzBmobz/sZ6XorDwD5Tf3F4k13KuX Ts9A== X-Gm-Message-State: AOJu0YxgTGPscnJsXKSxHZrhYgAZVvg9V0uKMzCJZF0Aj0EiUmns2yYb zMrbDdjVqKUDOdRYCPpqsbh+AenJ4uMYDfXKRxpcAenMz41UdqthV8MsEZzX X-Gm-Gg: ASbGncthjCA/fh+tuUEz7FbyLOAdDtCprkc9X1l5hiArSjOU0j4E80IN6+k/6NnYWcc 2tM8SKKZoVX6j/8Ljk3F5D7lZe4rVWCX7qJTomIKXl83rSSQ+GaJGTzpDtVUc3s1fECzT7t1oxS kn3Dp38aT/6lNINN7rUruthjnU96raKEWaTfs8NrSb3PAUcB5pbSHOk4Rh6oQ7MQKNUfrrsSUvd 6fLU94HXWbG0pe/T8UKdejd2rKO2gEymMXirHDCl08IAgRUOtBgOP3WWWl82G8jcvADygmP9EUN TsCf1w== X-Google-Smtp-Source: AGHT+IHcAMVmJm3RAjJS6o6yU+TEsKn7fU+s1EFZhRQgyq8jS+Ip1THoe8TsEEBDg1VHoMNAFP8EXQ== X-Received: by 2002:a17:902:f68a:b0:216:3633:36e7 with SMTP id d9443c01a7336-216363337d8mr106806545ad.26.1733748143149; Mon, 09 Dec 2024 04:42:23 -0800 (PST) From: Harikumar R To: devel@lists.libvirt.org Subject: [PATCH v6 02/18] schema: Add new domain elements to support multiple throttle filters Date: Mon, 9 Dec 2024 18:11:02 +0530 Message-Id: <20241209124118.39471-3-harirajkumar230@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241209124118.39471-1-harirajkumar230@gmail.com> References: <20241209124118.39471-1-harirajkumar230@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-MailFrom: harirajkumar230@gmail.com X-Mailman-Rule-Hits: nonmember-moderation 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 Message-ID-Hash: 5BV66HRCYGWAYTJBEWPLPLP423AMGURI X-Message-ID-Hash: 5BV66HRCYGWAYTJBEWPLPLP423AMGURI X-Mailman-Approved-At: Mon, 09 Dec 2024 13:19:44 -0500 CC: earulana@in.ibm.com, sanjeev.ranjan@ibm.com, harikumar.rajkumar@ibm.com, Chun Feng Wu 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: 1733750542289116600 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 --- 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 3f9cc90502..84aa5d85ac 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -2772,6 +2772,15 @@ paravirtualized driver is specified via the ``disk``= element. + + + + + + + + + ... =20 @@ -3274,6 +3283,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 10.7.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 e2b0832b5c..bc57bb812e 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -1636,7 +1636,10 @@ - + + + + @@ -6851,6 +6854,20 @@ + + + + + + + + + + + +