From nobody Sun May 19 15:20:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1690289608; cv=none; d=zohomail.com; s=zohoarc; b=mIsKMtfJGkAckdRasSfYJpFgxIPsbYHVogqYkNFVjY9AICNgEr6ZojUv27ie7Sp8+XMvl46+2xrQVW3f2xY1Klq6/7yqmPrmE512Mht7d4naqgN2x6VzEJv0T2pQcklWj6zcZQ0ePvtvQqc8lDvkobbGFZCyy9BxqVHUHAq7XHo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690289608; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Cd89Gw8qhn0vBkbWx9n1DSM+6guRK4N1yH58ejxA0tY=; b=BYAFuOVrTgib+DVahlPAxuJHv93HWa8Tff7xXmrpgzFQ5qdT7pB+PY4J7zCXM7SocC/rtjJgzirkX5nxvjUmvAZVPbkN8cUHTgx0DpPfJJOEKBjYJ/EJpvw5/Tf6lqEnTmUIPYj5OsiyhG3wV4r1YgWUNXM7VvfhC2qvyKv6I6A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1690289608064120.43085185255461; Tue, 25 Jul 2023 05:53:28 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-56-G65mEKmlOHypVxthrYtOIw-1; Tue, 25 Jul 2023 08:53:23 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2EA013C26367; Tue, 25 Jul 2023 12:53:20 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 18394492B01; Tue, 25 Jul 2023 12:53:20 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C4575194E11E; Tue, 25 Jul 2023 12:53:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id EA809194E117 for ; Tue, 25 Jul 2023 12:53:08 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id C1E3048FB01; Tue, 25 Jul 2023 12:53:03 +0000 (UTC) Received: from work.fritz.box (unknown [10.39.194.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F277492CAC; Tue, 25 Jul 2023 12:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690289607; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Cd89Gw8qhn0vBkbWx9n1DSM+6guRK4N1yH58ejxA0tY=; b=WV/Ch8F/lBDJdob41zqzIwojClNC/KUie00F+9vRCLNKw8itp4NFiRC/uAlcw+QtXJkEBL jiizKL+UQn5DJs7nCUxxWet9ucMRJTtVZ/JWezyITg9eHvF1IKH9XvsGddTu/ORb3RqcrL PHaDOW5BjRwhYsxjj8CcMi03A5EFLVg= X-MC-Unique: G65mEKmlOHypVxthrYtOIw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 1/5] cpu_map: Sort cpu features Date: Tue, 25 Jul 2023 14:52:57 +0200 Message-Id: <20230725125301.35943-2-twiederh@redhat.com> In-Reply-To: <20230725125301.35943-1-twiederh@redhat.com> References: <20230725125301.35943-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Wiederhake Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1690289609485100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Tim Wiederhake --- src/cpu_map/x86_features.xml | 259 ++++++++++++++++++----------------- 1 file changed, 130 insertions(+), 129 deletions(-) diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml index 5845a2331b..8f46549e76 100644 --- a/src/cpu_map/x86_features.xml +++ b/src/cpu_map/x86_features.xml @@ -5,98 +5,6 @@ =20 --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -196,6 +104,98 @@ =20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -517,39 +517,6 @@ =20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -626,6 +593,39 @@ =20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -732,6 +732,11 @@ =20 + + + + + @@ -776,8 +781,4 @@ =20 - - - - --=20 2.39.2 From nobody Sun May 19 15:20:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1690289601; cv=none; d=zohomail.com; s=zohoarc; b=GZB3EaZlTPlHlSb4NYRRPpPiAnwiKQ2yc4V9XvkP2OTPQeApSNn+7MO/2TxJ9210MvtoB6rjEAhncyLScy1F8Y9DFYwV5ez32t1YryRN6F+lkVluMH5UGm+eDUhxyroP9E8DK/Pu7PEOcUmZWxaCIeCpnUY9VKAfIGF2/7AfJeE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690289601; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=BA9oJjuxv5fDxj1nhL5mF8rZl+s/gMLyMu7WQlQFSYM=; b=iEIfooF6UWaw2w4z8iaM2L98D/Ptg+nZylSgjIrJaVSFaQczPwnAsHUPTHBjdEq5X58Hxbq5X5AqTE5osA09LLz956DOIh8BVootujlPNPsGEm4WakN38U3DJc7NyfNcvaUKsSmmE02AephWL/HXuyLAJhXveE/4pYyuNUh/ehE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 16902896012292.156024062634174; Tue, 25 Jul 2023 05:53:21 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-537-9BMJcjzNNRybXd76kVZcaA-1; Tue, 25 Jul 2023 08:53:15 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 46BDF3C26362; Tue, 25 Jul 2023 12:53:13 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id B40FFC2C858; Tue, 25 Jul 2023 12:53:12 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 08E2E19452C2; Tue, 25 Jul 2023 12:53:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D341019459EC for ; Tue, 25 Jul 2023 12:53:04 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id A5D65492CA6; Tue, 25 Jul 2023 12:53:04 +0000 (UTC) Received: from work.fritz.box (unknown [10.39.194.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0D06548FB02; Tue, 25 Jul 2023 12:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690289600; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=BA9oJjuxv5fDxj1nhL5mF8rZl+s/gMLyMu7WQlQFSYM=; b=DQuzx06NV69rvBM7QOhPYuXOThZX/sKMXTCxL5GSfVdX6LnSiqSNSlGtypD8iInhbJqN6d uoamhZ/FfLQwKMNSxMnk9OSNXBpoPgnxMNgHsbah6dN3zJRNwrKd7D1AJSfJQhejjvVdMs UMdgNYjmNQDffXT3bHwkq0JuzER0wYA= X-MC-Unique: 9BMJcjzNNRybXd76kVZcaA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 2/5] cpu_map: Format register values uniformly Date: Tue, 25 Jul 2023 14:52:58 +0200 Message-Id: <20230725125301.35943-3-twiederh@redhat.com> In-Reply-To: <20230725125301.35943-1-twiederh@redhat.com> References: <20230725125301.35943-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Wiederhake Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1690289601506100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Use "0x%08x" as format for all values: sed -e "s/'0x\(..\)'/'0x000000\\1'/g" -e "s/'0x\(...\)'/'0x00000\\1'/g" Signed-off-by: Tim Wiederhake --- src/cpu_map/x86_features.xml | 348 +++++++++++++++++------------------ 1 file changed, 174 insertions(+), 174 deletions(-) diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml index 8f46549e76..f53ec0d835 100644 --- a/src/cpu_map/x86_features.xml +++ b/src/cpu_map/x86_features.xml @@ -8,513 +8,513 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + =20 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + =20 - + =20 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + =20 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + =20 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + =20 - + - + - + - + - + - + - + - + =20 - + - + - + =20 - + =20 - + - + - + - + - + =20 - + - + =20 - + - + - + =20 - + =20 - + - + - + - + - + - + =20 - + =20 @@ -734,51 +734,51 @@ =20 - + =20 - + - + - + - + - + - + - + - + - + - + - + - + - + - + =20 --=20 2.39.2 From nobody Sun May 19 15:20:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1690289602; cv=none; d=zohomail.com; s=zohoarc; b=c/I3qUIrZe88/K4x6UMFg75rqCFjguZ6dpFZwmlaZqmASvDjHL6rZrIeRjddgNH8NHlyM5LTdufsc+PNeg8mKSIRPiDCND6pp2n/0ucakvpuPny8mvq4IFJvc/93xF1nJrROr0PbmstdQtEOJr3EHHE4FyLgG9NAm7/m4y/wmz8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690289602; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=K4p+7sY6dUCjse/JGacekuRUurW9MSPl11urGIctrJ0=; b=Mg7fWoE/FvYjPnlbaAfh2JmLmwfqkJ+zcrwtJumvtYdos7ea5ZqKkSoyE0GdMl5SNYZR27DukyKhe/g07hJ+5NLIwEyuZks+UbrBao8v/A0eJXEScUxG06sm13am0fasvBvO4QLjm1H2GRN63QjeFCgGsqEbFMQtgMuTPjP2ANw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1690289602958177.7360835653568; Tue, 25 Jul 2023 05:53:22 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-390-4qDb3d_6OH-6huovSgNP4g-1; Tue, 25 Jul 2023 08:53:20 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6E93A8870D6; Tue, 25 Jul 2023 12:53:14 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5469848FB03; Tue, 25 Jul 2023 12:53:14 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 4CB65194E00B; Tue, 25 Jul 2023 12:53:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 6826119459EC for ; Tue, 25 Jul 2023 12:53:05 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 58C40492CA6; Tue, 25 Jul 2023 12:53:05 +0000 (UTC) Received: from work.fritz.box (unknown [10.39.194.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id CD48C492B01; Tue, 25 Jul 2023 12:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690289602; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=K4p+7sY6dUCjse/JGacekuRUurW9MSPl11urGIctrJ0=; b=DJJ2hDeImtc6IdDECAvvAzSJ5vQRBDSdN8PeUmQaA/Gb4iuuokFkDWk4w/2PYnGlDNknAx bp+a/ApV6cKauLk56z/3zc1+MR0OEyY3o7/4EnDsJgG5shXKlr+XXS6uj2V1pVKYWsKTJB tV9k7O7R4/UlvALd5DoEMwZIRiR1Vro= X-MC-Unique: 4qDb3d_6OH-6huovSgNP4g-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 3/5] cpu_map: Format comments Date: Tue, 25 Jul 2023 14:52:59 +0200 Message-Id: <20230725125301.35943-4-twiederh@redhat.com> In-Reply-To: <20230725125301.35943-1-twiederh@redhat.com> References: <20230725125301.35943-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Wiederhake Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1690289604221100005 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Tim Wiederhake --- src/cpu_map/x86_features.xml | 40 +++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml index f53ec0d835..33e24f145f 100644 --- a/src/cpu_map/x86_features.xml +++ b/src/cpu_map/x86_features.xml @@ -5,7 +5,7 @@ =20 --> - + @@ -104,7 +104,7 @@ =20 - + @@ -196,12 +196,12 @@ =20 - + =20 - + @@ -292,6 +292,7 @@ =20 + @@ -353,6 +354,7 @@ =20 + @@ -413,6 +415,7 @@ =20 + @@ -438,6 +441,7 @@ =20 + @@ -448,11 +452,12 @@ =20 + =20 - + @@ -469,7 +474,7 @@ =20 - + @@ -477,7 +482,7 @@ =20 - + @@ -488,11 +493,12 @@ =20 + =20 - + @@ -512,12 +518,12 @@ =20 - + =20 - + @@ -593,7 +599,7 @@ =20 - + @@ -626,12 +632,12 @@ =20 - + =20 - + @@ -666,7 +672,7 @@ =20 - + @@ -718,7 +724,7 @@ =20 - + @@ -732,12 +738,12 @@ =20 - + =20 - + --=20 2.39.2 From nobody Sun May 19 15:20:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1690289608; cv=none; d=zohomail.com; s=zohoarc; b=TdW5HPgJmzRmAdZtqr/sGzYH2+yOSWmFPWv0Qz32mtPJG4AvgzA4cilb25pWuxPffYYuSn70+hHx2mufdc3KkvZrJEd02Xn2auGX1oeEWAl95DKfINFZV8zAHeDHWWEgRM94/PS59lV+Wgc+4f/ED/A8z5ioVlfamiLd3Lnn6OI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690289608; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=yidgVDRNIHud+ilgE/Q7FxiUfR4Ok4LMd1ecg3NLGNk=; b=TcZHUIh2eKQcRNmuLvnlmXRqHXxz6JKjhdqeOJEwxI9Zd1C27eN/Q04XCYra3XuLUUMe3TTa4ZaJCdp288m7jIAxcGe9U+OAL5b6alfDGnQn1pMjDvkhvkY5qgp6UQkr6xj6y3Xu01gyO4a6N1J1xjFgNjSnC6bAROPpztCpgkg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1690289608751947.1856657146892; Tue, 25 Jul 2023 05:53:28 -0700 (PDT) Received: from mimecast-mx02.redhat.com (66.187.233.73 [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-517-temzsu8zOH-2xlCUQ6Qmjg-1; Tue, 25 Jul 2023 08:53:23 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A5F8E3811F25; Tue, 25 Jul 2023 12:53:20 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8DCFB4094DC0; Tue, 25 Jul 2023 12:53:20 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 907E71946A54; Tue, 25 Jul 2023 12:53:12 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id F389819459EC for ; Tue, 25 Jul 2023 12:53:05 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id EEA18492CA6; Tue, 25 Jul 2023 12:53:05 +0000 (UTC) Received: from work.fritz.box (unknown [10.39.194.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 802D4492CAC; Tue, 25 Jul 2023 12:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690289607; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yidgVDRNIHud+ilgE/Q7FxiUfR4Ok4LMd1ecg3NLGNk=; b=h60mfU4E2NYJsA876JEEsbjuIl0NDgbXIrl57LP2YVgyljsJCczhh+gPNueWoWhkPFWhD0 Z1INquCfzFqH7tlrIK4MqajWXwC8raoQP6e137nEeJxcFUn4zq9qAiyXGd3HUiisfiE995 j6K7NbRc0spaEnGKUY9jWOxYjRtUSYw= X-MC-Unique: temzsu8zOH-2xlCUQ6Qmjg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 4/5] cpu_map: Remove unused alias information Date: Tue, 25 Jul 2023 14:53:00 +0200 Message-Id: <20230725125301.35943-5-twiederh@redhat.com> In-Reply-To: <20230725125301.35943-1-twiederh@redhat.com> References: <20230725125301.35943-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Wiederhake Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1690289610890100005 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Tim Wiederhake --- src/cpu_map/x86_features.xml | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/cpu_map/x86_features.xml b/src/cpu_map/x86_features.xml index 33e24f145f..2b770818ff 100644 --- a/src/cpu_map/x86_features.xml +++ b/src/cpu_map/x86_features.xml @@ -7,11 +7,9 @@ - - @@ -21,7 +19,6 @@ - @@ -61,13 +58,9 @@ - - - - @@ -206,7 +199,6 @@ - @@ -237,7 +229,6 @@ - @@ -368,7 +359,6 @@ - @@ -405,7 +395,6 @@ - @@ -525,11 +514,9 @@ =20 - - @@ -581,7 +568,6 @@ - @@ -591,11 +577,9 @@ - - =20 @@ -604,15 +588,12 @@ - - - @@ -622,7 +603,6 @@ - @@ -680,19 +660,15 @@ - - - - @@ -702,7 +678,6 @@ - --=20 2.39.2 From nobody Sun May 19 15:20:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1690289607; cv=none; d=zohomail.com; s=zohoarc; b=ci9BDNL7hbU/CHX26REARV6SDDDPd20jwGwIpKEKUaRwOHBoZqUVgrI85GaM0vXBcZfvc6WG+6gjaHIIH5MBIEkQronh/euFy6sTgKfWUHBt5fWBBThpZjKMiN29YxVvHLwM5Zr/P3Npg3z3kJ3XWDZYwcNg8675fi8cAJ+S7HE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1690289607; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=mkZm9gh/yZQ/T6EMD/rBg97qNnAEcCAJZYWOxDe4uUg=; b=XHDBGf64QJLNMKAOPe9gdpdSf49Mf2mkcCbpl+E0BjahUkBEFN4LpH1bfAnvsGmd0uPnWAx4cCh0THyjdKNxt1ow3ez5jiW0ASngUQdu1LW3uX+frbyw3d5GqaSLYX2HUXw6kOK9+Sik80hDhAO0wEamw5UwNqPAaN9VeAa3+4M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1690289607726527.5611790999096; Tue, 25 Jul 2023 05:53:27 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-64-iUBtL1MCNWqjnrTTSCi6mg-1; Tue, 25 Jul 2023 08:53:22 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E72A18002BF; Tue, 25 Jul 2023 12:53:19 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id CE0724094DC0; Tue, 25 Jul 2023 12:53:19 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 580BE194E104; Tue, 25 Jul 2023 12:53:08 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id D2A72194E101 for ; Tue, 25 Jul 2023 12:53:06 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B20CD492CA6; Tue, 25 Jul 2023 12:53:06 +0000 (UTC) Received: from work.fritz.box (unknown [10.39.194.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 43A5F492B01; Tue, 25 Jul 2023 12:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690289606; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=mkZm9gh/yZQ/T6EMD/rBg97qNnAEcCAJZYWOxDe4uUg=; b=Ry9QyO7be0ZYrCpD+eiSUnUkPwN8g0pjzwrBtTi7PjwnUV6JsRRwNrr5O1unlUkZGbGKHR /c6cqBTwwb9y/KmPhQVSgPcOj8j4oZLiP3Cs8Uhn4epxoVZ1xS4nrHvkPhHvux8ioQxcMG vPxJl+49z7kwBoAdA+9KNgmBDq9twNc= X-MC-Unique: iUBtL1MCNWqjnrTTSCi6mg-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH 5/5] cpu_map: Generate x86 feature map from libcpuinfo Date: Tue, 25 Jul 2023 14:53:01 +0200 Message-Id: <20230725125301.35943-6-twiederh@redhat.com> In-Reply-To: <20230725125301.35943-1-twiederh@redhat.com> References: <20230725125301.35943-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Wiederhake Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1690289609487100002 Content-Type: text/plain; charset="utf-8"; x-default="true" Signed-off-by: Tim Wiederhake --- src/cpu_map/x86_features.py | 119 ++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100755 src/cpu_map/x86_features.py diff --git a/src/cpu_map/x86_features.py b/src/cpu_map/x86_features.py new file mode 100755 index 0000000000..5bc7e06216 --- /dev/null +++ b/src/cpu_map/x86_features.py @@ -0,0 +1,119 @@ +#!/bin/env python3 + +import os +import pycpuinfo + +non_migratable =3D ( + "invtsc", + "xsaves", +) + +family_x86 =3D pycpuinfo.Family.find("x86") + +features_cpuid =3D dict() +features_msr =3D dict() + + +def cpuid_to_reg_value(data): + if data[2]: + return "eax", data[2] + if data[3]: + return "ebx", data[3] + if data[4]: + return "ecx", data[4] + if data[5]: + return "edx", data[5] + + +def add_cpuid(feature): + name =3D feature.name("libvirt") + data =3D feature.extra_x86_cpuid() + reg_value =3D cpuid_to_reg_value(data) + + if data[0] not in features_cpuid: + features_cpuid[data[0]] =3D dict() + + if data[1] not in features_cpuid[data[0]]: + features_cpuid[data[0]][data[1]] =3D dict() + + if reg_value[0] not in features_cpuid[data[0]][data[1]]: + features_cpuid[data[0]][data[1]][reg_value[0]] =3D set() + + features_cpuid[data[0]][data[1]][reg_value[0]].add(( + reg_value[1], + name, + )) + + +def add_msr(feature): + data =3D feature.extra_x86_msr() + if data[0] not in features_msr: + features_msr[data[0]] =3D set() + + features_msr[data[0]].add(( + data[2], + data[1], + feature.name("libvirt"), + )) + + +def print_feature_cpuid(f): + tmpl_ecx =3D ( + " \n", + " \n" + ) + tmpl_any =3D ( + " \n", + " \n" + ) + + for eax in sorted(features_cpuid): + for ecx in sorted(features_cpuid[eax]): + if ecx =3D=3D pycpuinfo.x86.CPUINFO_X86_CPUID_ECX_NONE: + template =3D tmpl_any + else: + template =3D tmpl_ecx + + for reg in sorted(features_cpuid[eax][ecx]): + f.write(template[0].format(eax, ecx, reg)) + for data in sorted(features_cpuid[eax][ecx][reg]): + extra =3D "" + if data[1] in non_migratable: + extra =3D " migratable=3D'no'" + f.write(" \n".format(data[1], = extra)) + f.write(template[1].format(eax, ecx, reg, data[0])) + f.write(" \n") + f.write("\n") + + +def print_feature_msr(f): + template =3D " \n" + for msr in sorted(features_msr): + f.write(" \n".format(msr)) + for data in sorted(features_msr[msr]): + f.write(" \n".format(data[2])) + f.write(template.format(msr, data[0], data[1])) + f.write(" \n") + f.write("\n") + + +for feature in pycpuinfo.features(): + if feature.family() !=3D family_x86: + continue + + if feature.extra_x86_cpuid(): + add_cpuid(feature) + elif feature.extra_x86_msr(): + add_msr(feature) + + +filename =3D os.path.join(os.path.dirname(__file__), "x86_features.xml") +with open(filename, "tw") as f: + f.write( + "\n") + f.write("\n") + print_feature_cpuid(f) + print_feature_msr(f) + f.write("\n") --=20 2.39.2