From nobody Thu Jan 2 14:30:53 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 1733750500916588.1821741220823; Mon, 9 Dec 2024 05:21:40 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 8F5521248; Mon, 9 Dec 2024 08:21:39 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id E8156123A; Mon, 9 Dec 2024 08:19:52 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 1593E11CF; Mon, 9 Dec 2024 07:42:23 -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 22F4911BE for ; Mon, 9 Dec 2024 07:42:22 -0500 (EST) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2161eb94cceso16479105ad.2 for ; Mon, 09 Dec 2024 04:42:22 -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.18 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 09 Dec 2024 04:42:20 -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=1733748141; x=1734352941; 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=J16WuchThtF2gWOMCs+4YhWMYxN14EJLQL3T/YlE8Sg=; b=Txa1vt06+qmgBtCjye4JD/g+NC3oQVhztkoUYmwsWeohoMJ2uVi7N02QAD0IJ44HPr 3GZcNhxYY6yzY4+sfQPiOkuP039EBN62fuv2yOzGzNRHy/yBJBETPrOd6KmhYpBBwghG SPhYCDE+eY26ZcvPCXPCN2yrLk5uzeMtMIXCX0OCwkgKDBNCSfu88hpet2wt5z952LkH XJ3EMMd5p0kmSXE0cJTDVaVWHwmyJhW8mtx5bLmbw51JaHUFUjg3xEuq4l41JL18sK1d /A5ef5V6X9jcCsUgtHW96ayFaPN/8M8ZM4CmuK1b4Wv0TTG4I81RYvMXwV1h8vCoRNxZ IyTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733748141; x=1734352941; 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=J16WuchThtF2gWOMCs+4YhWMYxN14EJLQL3T/YlE8Sg=; b=IammDpo7eJuh6FoJGQoMB2LJ/VCcwg62eLhBlekDX7zfriiNUtEq+8DkxLiH+RcPS7 EZ77lhoqNZOh1Ut64J1AxLrIchhTIVCE0bq+5hrzliM4lJ7PtaimGTxMU3skgOAhYAUb ZVLcmH6WOeG2y7F4FrtG7hLPIiDFGvLwLB+SO+MXyOq6jwizsbs7BzETEeyX1+w14lis EL78it4rOvGzkZjK0aCfcPxghdTGmmTKDFUBoPr98CLxPqLY5p6edcBW8Ku6/5bztuTk /k9MpIbwyM98CJwj8ME64+HNBmA8D+yForesRXEyDyuclwr3PXab81ClldBjkH2Rbil6 iGhw== X-Gm-Message-State: AOJu0YxBnBgESKdcR7t91A1V/tfAJSghZHv3E/kogThw6q63Vu6xrfyY Umgtbroj911xMhUafoULMd3CLSIp2hi61+faqIAeR7hqMoMgdMwlg5IzD8Ov X-Gm-Gg: ASbGnctElScC+rWu1gQn+OhIet+A8Ex1nDES+03ju7eIvGVDhxgPG59KeRw9jJVuZz9 JxgHSgFuYi7S162C6RfpZJoIVlHIlpXkY4ZY6xCJizZSEr6Gqprli0ixzfjYgoK2f0VFVhJ0ObW PrjlgW7pegLfXEaICTJwJB7P0YiBtDYlo8sRZiXnUFe/gVJkayV78jOySlktH1/HdbKOLSaDpws 9JY4h9fIiPtaOvQ1SgmwAjh18DglXk1wDLZFQAss96iXgpIgABLYsDeE9l5cl49RFs4JhEcIqiz bT0ujQ== X-Google-Smtp-Source: AGHT+IG4hJ6JrRw3olyQLhjnm69LTcsMmCbiUlFDe5NRP3QbkJevRFn65WJ24doRwATvYAN+nttHGA== X-Received: by 2002:a17:903:41cb:b0:216:5e6e:68ca with SMTP id d9443c01a7336-2165e6e6a39mr29864315ad.49.1733748140584; Mon, 09 Dec 2024 04:42:20 -0800 (PST) From: Harikumar R To: devel@lists.libvirt.org Subject: [PATCH v6 01/18] schema: Add new domain elements to support multiple throttle groups Date: Mon, 9 Dec 2024 18:11:01 +0530 Message-Id: <20241209124118.39471-2-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: BVDWK4UJN64FM2K6VYHWY4AQYIQZAAVK X-Message-ID-Hash: BVDWK4UJN64FM2K6VYHWY4AQYIQZAAVK 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: 1733750501955116600 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 60bee8bd4f..3f9cc90502 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 b3fdbf7ffb..e2b0832b5c 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -51,6 +51,7 @@ + @@ -6833,6 +6834,23 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +