From nobody Wed Dec 4 19:18:21 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=redhat.com Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1732042579463734.4770973813037; Tue, 19 Nov 2024 10:56:19 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 707CB13F0; Tue, 19 Nov 2024 13:56:18 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id E04CD142B; Tue, 19 Nov 2024 13:50:55 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 8523D141E; Tue, 19 Nov 2024 13:50:50 -0500 (EST) 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 A78141428 for ; Tue, 19 Nov 2024 13:50:33 -0500 (EST) Received: from mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-686-fT79iN4EMLSxKLlr5LHe0A-1; Tue, 19 Nov 2024 13:50:31 -0500 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3204D19560A3 for ; Tue, 19 Nov 2024 18:50:31 +0000 (UTC) Received: from orkuz (unknown [10.45.226.13]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8C63B19560A3 for ; Tue, 19 Nov 2024 18:50:30 +0000 (UTC) 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,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=redhat.com; s=mimecast20190719; t=1732042233; 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=clpMhgITJKEVmpcLBiOk8RkZ3TyVTOri94KWYEPtsLM=; b=eu4AvLK1L2UBmT52UC/11pTjQzxRKmpu0IOp863xjkb9DJiNUoMxxysNQGQxjbdYu+utZ6 lRTiULRo2XRc7sFDCkSHdzaTsXS6MXb+Yylx9eqOz3fCqyMhQ9qtT7hqbSoNxd2PlS03hT jrmesSPjbaRq5kHcGm9UlfHQ+B835b4= X-MC-Unique: fT79iN4EMLSxKLlr5LHe0A-1 X-Mimecast-MFC-AGG-ID: fT79iN4EMLSxKLlr5LHe0A From: Jiri Denemark To: devel@lists.libvirt.org Subject: [PATCH 09/32] cpu_map: Group models in index.xml Date: Tue, 19 Nov 2024 19:49:45 +0100 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Ij1FMgYnQMbyxDi6S05W_P0Mu1NbFPyz9q4mruSM-WI_1732042231 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: JTOJP3H23EFEMLM6OPPLGTNCKZOMLJUH X-Message-ID-Hash: JTOJP3H23EFEMLM6OPPLGTNCKZOMLJUH X-MailFrom: jdenemar@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: 1732042580324116600 Content-Type: text/plain; charset="utf-8" We already visually group the included models according to vendor using comments. This patch introduces a new element for doing it properly in a machine friendly way. Signed-off-by: Jiri Denemark --- src/cpu/cpu_map.c | 2 +- src/cpu_map/index.xml | 226 ++++++++++++++++++++++-------------------- 2 files changed, 121 insertions(+), 107 deletions(-) diff --git a/src/cpu/cpu_map.c b/src/cpu/cpu_map.c index 16795a9a0a..9c405f19bb 100644 --- a/src/cpu/cpu_map.c +++ b/src/cpu/cpu_map.c @@ -116,7 +116,7 @@ loadIncludes(xmlXPathContextPtr ctxt, int n; size_t i; =20 - n =3D virXPathNodeSet("include", ctxt, &nodes); + n =3D virXPathNodeSet("include|group[@name|@vendor]/include", ctxt, &n= odes); if (n < 0) return -1; =20 diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml index 15cb63afe5..2cb97a83ba 100644 --- a/src/cpu_map/index.xml +++ b/src/cpu_map/index.xml @@ -3,122 +3,136 @@ =20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =20 =20 - - - - - - - - - - + + + + + + + + + + + + =20 =20 - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --=20 2.47.0