From nobody Sat Feb 7 08:39:40 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 1726152666689265.19630940236584; Thu, 12 Sep 2024 07:51:06 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id A823B1439; Thu, 12 Sep 2024 10:51:05 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 35EF3164E; Thu, 12 Sep 2024 10:48:27 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id AADF91439; Thu, 12 Sep 2024 10:48:13 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 92E47143A for ; Thu, 12 Sep 2024 10:48:12 -0400 (EDT) Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-20-g58hSFWzPHO4sOF8QYBY2Q-1; Thu, 12 Sep 2024 10:48:11 -0400 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-42cb6f3c476so7698605e9.0 for ; Thu, 12 Sep 2024 07:48:10 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42caeb21d2fsm181249655e9.1.2024.09.12.07.48.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 07:48:08 -0700 (PDT) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id C0E7A24680FF 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=1726152492; 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=9NqtgHy7yRDGTJAk99Vs7wRLaYQyMtoDQD/3X52FUjM=; b=h0Z5YhE15WVuyhNYHRV8vdF7a+WaHl5XURRx6O2h7eu3ek0CHUfcJj+2YrPJfMIGyMCo3P uGLv5JtjOFs1CqNso/xRTaXDKFR8YscnM811HziRIF4xcoi2JUY3QyEQUSts9DF9Yj52cQ 9Pmb2Kja6QZ6YHZ+8FCKNpytIip8lfg= X-MC-Unique: g58hSFWzPHO4sOF8QYBY2Q-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726152490; x=1726757290; 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=9NqtgHy7yRDGTJAk99Vs7wRLaYQyMtoDQD/3X52FUjM=; b=kx01QX6S0poBvLvyFnHfdyUFZQyc03DaPG/VLjdr3acV5iriReKXXTnhr1GMJQJyJn SwUxfKpj+elernEBeSsp4LH/hh0YqD17KBYL5jY+jAlYXltBc4z7OXNXhkhKmul+m+Wy Ay4YPFwSQB2NRE+4idJfduLFYtXksgVqU+glDu6qGX1pFvxestQV0XPm58uOjjFlINYx B6v/CWh9qGj/JPNrdmto7NKdWbgANsJ8hDHgkciSKSM9odrm294VuGQc6sYgrGj5nNtA MhINVpvplaSnCE9RVH9bKRz5v9Kmz73mQL5AMW58KueGJ/8NWqKNNHlghMNyszdsdLth mg4w== X-Gm-Message-State: AOJu0YxsaQTzaaKLpYQ6+FDewOhql2vyTo2wQSsc8sQuo/WsW+Zld0ax 9FhqiZxfEAR/olz8UfNkr49u7UOwhc2BfPOugui16XeUo9LUdyMbNZ49JHoB0LXKKxIDYuVB3B3 eFJ2T+pbT/3UzE34g4TpAYprhvzO12hCfulMiAY4jO5JmSuueSGaNofNpOJGDbad+MfAPlX3vrh sTnxWUCIXRiAFCBsisIeUDAnzQ4WuvJnl/x8gKhsY= X-Received: by 2002:a05:600c:3b92:b0:42c:b5f1:44ff with SMTP id 5b1f17b1804b1-42cdb56caafmr24687975e9.24.1726152489721; Thu, 12 Sep 2024 07:48:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5SU3Yir0FP6g7vN/6MSH73oAAO5uK+6sBZESA80FKmjWrN2Inr8hD4bWHWO2jzMOsbCwuFA== X-Received: by 2002:a05:600c:3b92:b0:42c:b5f1:44ff with SMTP id 5b1f17b1804b1-42cdb56caafmr24687735e9.24.1726152489210; Thu, 12 Sep 2024 07:48:09 -0700 (PDT) From: Martin Kletzander To: devel@lists.libvirt.org Subject: [PATCH 07/10] capabilities: Also report L2 caches Date: Thu, 12 Sep 2024 16:47:56 +0200 Message-ID: <59e2b21e368e2bd07d4fa59bd8768254575e86a8.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: MUAAAGFIHWDM3ORI7XEU33NMLJGI2MGY X-Message-ID-Hash: MUAAAGFIHWDM3ORI7XEU33NMLJGI2MGY 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: 1726152667501116600 Content-Type: text/plain; charset="utf-8"; x-default="true" Since some systems support control for L2 caches as well as L3 caches it would be useful to report their configuration in capabilities. Signed-off-by: Martin Kletzander --- src/conf/capabilities.c | 2 +- tests/vircaps2xmldata/vircaps-x86_64-caches.xml | 4 ++++ tests/vircaps2xmldata/vircaps-x86_64-resctrl-cdp.xml | 12 ++++++++++++ tests/vircaps2xmldata/vircaps-x86_64-resctrl-cmt.xml | 12 ++++++++++++ .../vircaps-x86_64-resctrl-fake-feature.xml | 12 ++++++++++++ tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml | 12 ++++++++++++ 6 files changed, 53 insertions(+), 1 deletion(-) diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c index 74e629376616..1d3b7050b2e3 100644 --- a/src/conf/capabilities.c +++ b/src/conf/capabilities.c @@ -2161,7 +2161,7 @@ virCapabilitiesInitCaches(virCaps *caps) /* Minimum level to expose in capabilities. Can be lowered or removed= (with * the appropriate code below), but should not be increased, because w= e'd * lose information. */ - const int cache_min_level =3D 3; + const int cache_min_level =3D 2; =20 if (virCapabilitiesInitResctrl(caps) < 0) return -1; diff --git a/tests/vircaps2xmldata/vircaps-x86_64-caches.xml b/tests/vircap= s2xmldata/vircaps-x86_64-caches.xml index 05b33147b70b..829e0a3557f0 100644 --- a/tests/vircaps2xmldata/vircaps-x86_64-caches.xml +++ b/tests/vircaps2xmldata/vircaps-x86_64-caches.xml @@ -30,6 +30,10 @@ + + + + diff --git a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-cdp.xml b/tests/v= ircaps2xmldata/vircaps-x86_64-resctrl-cdp.xml index 167b217d8e45..c9ab1a572be6 100644 --- a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-cdp.xml +++ b/tests/vircaps2xmldata/vircaps-x86_64-resctrl-cdp.xml @@ -42,6 +42,18 @@ + + + + + + + + + + + + diff --git a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-cmt.xml b/tests/v= ircaps2xmldata/vircaps-x86_64-resctrl-cmt.xml index 311bb58e6a6b..055c27a65376 100644 --- a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-cmt.xml +++ b/tests/vircaps2xmldata/vircaps-x86_64-resctrl-cmt.xml @@ -42,6 +42,18 @@ + + + + + + + + + + + + diff --git a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml = b/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml index d85407f0b10d..01ecb2e94104 100644 --- a/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml +++ b/tests/vircaps2xmldata/vircaps-x86_64-resctrl-fake-feature.xml @@ -42,6 +42,18 @@ + + + + + + + + + + + + diff --git a/tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml b/tests/virca= ps2xmldata/vircaps-x86_64-resctrl.xml index fd854ee91e01..d690ee90191c 100644 --- a/tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml +++ b/tests/vircaps2xmldata/vircaps-x86_64-resctrl.xml @@ -42,6 +42,18 @@ + + + + + + + + + + + + --=20 2.46.0