From nobody Mon Feb 9 04:36:41 2026 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=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 172615256725235.593524776396976; Thu, 12 Sep 2024 07:49:27 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 2372114DB; Thu, 12 Sep 2024 10:49:26 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id DA89516E8; Thu, 12 Sep 2024 10:48:17 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id D0AD71436; Thu, 12 Sep 2024 10:48:11 -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 664321450 for ; Thu, 12 Sep 2024 10:48:11 -0400 (EDT) Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-613-Igvsk6oANBe4dAu6qg4ElA-1; Thu, 12 Sep 2024 10:48:09 -0400 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-42cb6dc3365so7993855e9.2 for ; Thu, 12 Sep 2024 07:48:09 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37895665babsm14649854f8f.47.2024.09.12.07.48.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 07:48:07 -0700 (PDT) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 925E424680FB for ; Thu, 12 Sep 2024 16:48:06 +0200 (CEST) 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_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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=1726152491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aYuI1kcob/56DhJ/hjfhKE2xmJnLgjF0hDf6skSC/58=; b=M32NfZJDipFW6vlHS1kopgdoiEdpSdMJvCP6NeKhBIWU6CZL6HQtM4RIIm3UjvIi7bT2Lr LJ6Iac+n2aBlRvM84Vp5NJwyLuqdU4hg5ExPF5WEg9uM4fVfBsksBJ0JekV/glGFxNXiZ+ Lf7NXMPpAdUnpj4DKA+iH7eDYTqxFwk= X-MC-Unique: Igvsk6oANBe4dAu6qg4ElA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726152488; x=1726757288; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aYuI1kcob/56DhJ/hjfhKE2xmJnLgjF0hDf6skSC/58=; b=TQrb2wp0dOVSWA4OkEZ+BXlvIW5fGP0Do5gUOpefjnnYm04JkMrN2bSL20pG/Wc6Sn Z0RHNJB0L9W3a66ygaQ/cbBLB4+ITSePQdrQ3jVXMY2zU8+2upHB640FfQ/P5xwdsf7D pStVuOB8n5rKS3eTBi2sES2crvPs4YgebC1xGyigDO76ptmr6rVuAwu4pV+SkUPFg1eM 1vlQHMVenYw2JcXOHkJgQJ/sDyY4pVbNn9OkZNlMOgiH1/mMJQhFVtyeBKnnlrGs/5xG RIkY5oC/hTsyBIfF6WmAtjyyua+bGjOihTUeDZhjv3j4bHF2HyMEDZs9AZKJ2sf5qAlM p4RA== X-Gm-Message-State: AOJu0YwPEqw8cPhDGEsE2zgzSvnd5rOH8+r+/6ZrH7BwQpgAmwgZTX7P B8kHFhkhWZeRh3SJkFLN+MVaITaN0SqpCd9GsR6u7P5V9aT8mR09f20QLBKzQjdr8udQf/WHJbZ WyJlx9srcP/mnMjmbN2G/eLR+G2GMT2SV0TZP9USjTVnZONx4eOgxWfU0YLNHkrdCuNuTjFLZeN 3dH7RTin1OzTBbuEVbaU+L/w1QbWpEflvwVhqVbpE= X-Received: by 2002:a5d:5681:0:b0:374:c651:4abf with SMTP id ffacd0b85a97d-378c2d62070mr1752755f8f.52.1726152488571; Thu, 12 Sep 2024 07:48:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErTAicFnZPF7w/zWeoSr1p6TbF7CSRklj24IFl6hjzJdBF1YvWzyT7FRKFHf+b0xjzJGPo5g== X-Received: by 2002:a5d:5681:0:b0:374:c651:4abf with SMTP id ffacd0b85a97d-378c2d62070mr1752731f8f.52.1726152487627; Thu, 12 Sep 2024 07:48:07 -0700 (PDT) From: Martin Kletzander To: devel@lists.libvirt.org Subject: [PATCH 03/10] resctrl: Relax the limit of maximum memory bandwidth allocation Date: Thu, 12 Sep 2024 16:47:52 +0200 Message-ID: <0a0745b02d26a72f7be806ef43a98229bb37a90d.1726152457.git.mkletzan@redhat.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: CF7JFMC5O25BX5VQ24UDEMTV6VLJY5C7 X-Message-ID-Hash: CF7JFMC5O25BX5VQ24UDEMTV6VLJY5C7 X-MailFrom: mkletzan@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 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: 1726152568912116600 Content-Type: text/plain; charset="utf-8"; x-default="true" The value 100 represented the percentage as it was originally done from Intel in the Linux kernel and on their CPUs. Since then the situation changed and there is no error-prone way of figuring out the meaning of the value in the current configuration, let alone its possible maximum. Signed-off-by: Martin Kletzander --- src/util/virresctrl.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 8ed111c182e7..e0a7a3e12759 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -1269,12 +1269,6 @@ virResctrlAllocSetMemoryBandwidth(virResctrlAlloc *a= lloc, { virResctrlAllocMemBW *mem_bw =3D alloc->mem_bw; =20 - if (memory_bandwidth > 100) { - virReportError(VIR_ERR_XML_ERROR, "%s", - _("Memory Bandwidth value exceeding 100 is invalid.= ")); - return -1; - } - if (!mem_bw) { mem_bw =3D g_new0(virResctrlAllocMemBW, 1); alloc->mem_bw =3D mem_bw; --=20 2.46.0