From nobody Thu Nov 21 13:36:30 2024 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 1731939087054681.6813562122675; Mon, 18 Nov 2024 06:11:27 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id E1D721BCC; Mon, 18 Nov 2024 09:11:25 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id A1A8F1B81; Mon, 18 Nov 2024 09:10:18 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 29E831A09; Mon, 18 Nov 2024 08:54:50 -0500 (EST) Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 2908D1A01 for ; Mon, 18 Nov 2024 08:54:49 -0500 (EST) Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-72410cc7be9so3188202b3a.0 for ; Mon, 18 Nov 2024 05:54:49 -0800 (PST) Received: from localhost.localdomain ([2409:40f4:9:7d39:e991:fcfb:15ab:ce58]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-72477135ecbsm6113482b3a.84.2024.11.18.05.54.44 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 18 Nov 2024 05:54:46 -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.5 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=1731938087; x=1732542887; 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=e+8odes9Nbgi/KMKExWO+gjrMB3mbiNGvjlM4cqTWws=; b=m7T7FvM2rndabSZiUEPHoqMozYdMNwjkugJsWjZ+T/I9akQUlbAJDkJndbx7WhZTx+ MhCD1X0J8B+mRdoHTcyF0TD8eSOV7EgpM9OO/Ig49G7j/SO2gRY7MbggloFnyVdu2qFw qp6OW9bCE8bQmL/hz1fiKnA6KEReKGgmZpURmbu6JTgfN9o293kN9aFu1oApobmKYLK8 4oGtq6lSahXxjfgWhBGT5BItfkGscfxHTerRwPhc7TEvcn8P2MC7CY/rge7nEDbdk/Qj IhnbiB1kn3Xf8GscT0IpQnuw+lmO+tD+gk1O7gmwi7NnebwOEbiwp4A1AJIYHVVJw1Wa qxPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731938087; x=1732542887; 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=e+8odes9Nbgi/KMKExWO+gjrMB3mbiNGvjlM4cqTWws=; b=FxeQJgfrRhMxZcG5OsPV6PqtEwiFjJEv+ke4nUPedb+brmC/c5OdT9GmKK2sBo4EqH 9oZzAMKE5es3dPgfRa8sKgtia+LnrBS/WxS9zlS7jZr4C3y/KLJtGfvxymYYL+Q6+eeE N/cQAoMwJlwkO/5iHEKeMVZBEZ5ic7BbyL+ODjOq6d4irwdzptklZpXe/0ECICrU8MTi S+xjA4rMnufPAvsoX4JXY9cTXVBAexmFR57+WjcaaqTxIljmIl0hyDsXkF1BYjNw0AHo M1zHijIjLeINecreTt+T5Q7tGJy0zB2IFZqXO9HeJvsltD04AHyRO3n+PqrFUc5kP3f7 tVLQ== X-Gm-Message-State: AOJu0YxF7MKCaKq9UM4z3Eckk0gu97NhkEAwkpAVvfrtYK+q1WsUq4Dp pYrZjKQqZRg2e9g1AQoPM9+TeYsVV6GedOCrZV1N46AvKxBoDKVTRW/sefHa X-Google-Smtp-Source: AGHT+IGgZsSTjlkaVys0yGTRbfohaYGfqZ+bMk2aFtBedRKMlI+tsmLg4/a8GFzO7lf9N608h9ODbg== X-Received: by 2002:a05:6a00:a08:b0:71e:6489:d18 with SMTP id d2e1a72fcca58-72476d5a95fmr17914606b3a.22.1731938087182; Mon, 18 Nov 2024 05:54:47 -0800 (PST) From: Harikumar R To: devel@lists.libvirt.org Subject: [PATCH v5 01/18] schema: Add new domain elements to support multiple throttle groups Date: Mon, 18 Nov 2024 19:24:09 +0530 Message-Id: <20241118135426.37643-2-harirajkumar230@gmail.com> X-Mailer: git-send-email 2.39.5 (Apple Git-154) In-Reply-To: <20241118135426.37643-1-harirajkumar230@gmail.com> References: <20241118135426.37643-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: JTDBF536XV2JWSEA4A65O7OPJNXW47BM X-Message-ID-Hash: JTDBF536XV2JWSEA4A65O7OPJNXW47BM X-Mailman-Approved-At: Mon, 18 Nov 2024 14:10:14 -0500 CC: harikumar.rajkumar@ibm.com, sanjeev.ranjan@ibm.com, earulana@in.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: 1731939089291116600 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 --- 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 f0b79d5f8d..5b7f18b2f0 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -1964,6 +1964,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 10.7.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 bfd0044805..6f08ac4da5 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -51,6 +51,7 @@ + @@ -6822,6 +6823,23 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +