From nobody Mon Sep 16 19:07:40 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 172130933809893.54627953285137; Thu, 18 Jul 2024 06:28:58 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 06CE5A53; Thu, 18 Jul 2024 09:28:56 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id C3A189FF; Thu, 18 Jul 2024 09:27:49 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id DFACDA0A; Thu, 18 Jul 2024 09:27:45 -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 4F0E0A1B for ; Thu, 18 Jul 2024 09:27:36 -0400 (EDT) Received: from mx-prod-mc-05.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-82-aDvPk7fhPZaRb_r_-bB42g-1; Thu, 18 Jul 2024 09:27:29 -0400 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 9A27E1955F3B for ; Thu, 18 Jul 2024 13:27:28 +0000 (UTC) Received: from work.fritz.box (unknown [10.39.194.217]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id A85EB1955D42; Thu, 18 Jul 2024 13:27:27 +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=2.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,RCVD_IN_SBL_CSS,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721309255; h=from:from: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; bh=cs3QAWuUbBp+pnaxS66O77zoi3DGHg9QqS0Ou9MYM5c=; b=KuAwZZfq2QRrkoBad23aATfQiOe4twSIm4HSdLscVFzXAN5k7azJuXV7ulceVcDW5wE3Ab 8hTFSxvYFZmnuz7ejNY4ZdC383IxQkqoUMl9eupIVZj2hnxLyWfVe5Wc5dXPJDWvlODMUk BZJDVJhYMSgxMhnP+IG+C5q6/U2Oftw= X-MC-Unique: aDvPk7fhPZaRb_r_-bB42g-1 From: Tim Wiederhake To: devel@lists.libvirt.org Subject: [PATCH 1/2] sync_qemu_models_i386.py: Add missing features Date: Thu, 18 Jul 2024 15:27:23 +0200 Message-ID: <20240718132724.25387-2-twiederh@redhat.com> In-Reply-To: <20240718132724.25387-1-twiederh@redhat.com> References: <20240718132724.25387-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 7UTXYP3SMZSTJDU4NQOWRIXM77ATCOGF X-Message-ID-Hash: 7UTXYP3SMZSTJDU4NQOWRIXM77ATCOGF X-MailFrom: twiederh@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 CC: Tim Wiederhake 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: 1721309338494116600 Content-Type: text/plain; charset="utf-8"; x-default="true" This brings the tool's list of features in sync with qemu commit 37fbfda8f4145ba1700f63f0cb7be4c108d545de. Signed-off-by: Tim Wiederhake Reviewed-by: Michal Privoznik --- src/cpu_map/sync_qemu_models_i386.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cpu_map/sync_qemu_models_i386.py b/src/cpu_map/sync_qemu_m= odels_i386.py index 9e96b4244e..06a8837b0a 100755 --- a/src/cpu_map/sync_qemu_models_i386.py +++ b/src/cpu_map/sync_qemu_models_i386.py @@ -50,6 +50,7 @@ def translate_feature(name): "CPUID_7_0_EBX_SHA_NI": "sha-ni", "CPUID_7_0_EBX_SMAP": "smap", "CPUID_7_0_EBX_SMEP": "smep", + "CPUID_7_0_EBX_TSC_ADJUST": "tsc_adjust", "CPUID_7_0_ECX_AVX512BITALG": "avx512bitalg", "CPUID_7_0_ECX_AVX512VNNI": "avx512vnni", "CPUID_7_0_ECX_AVX512_VBMI": "avx512vbmi", @@ -82,10 +83,14 @@ def translate_feature(name): "CPUID_7_0_EDX_TSX_LDTRK": "tsx-ldtrk", "CPUID_7_1_EAX_AMX_FP16": "amx-fp16", "CPUID_7_1_EAX_AVX512_BF16": "avx512-bf16", + "CPUID_7_1_EAX_AVX_IFMA": "avx-ifma", "CPUID_7_1_EAX_AVX_VNNI": "avx-vnni", + "CPUID_7_1_EAX_CMPCCXADD": "cmpccxadd", "CPUID_7_1_EAX_FSRC": "fsrc", "CPUID_7_1_EAX_FSRS": "fsrs", "CPUID_7_1_EAX_FZRM": "fzrm", + "CPUID_7_1_EDX_AVX_NE_CONVERT": "avx-ne-convert", + "CPUID_7_1_EDX_AVX_VNNI_INT8": "avx-vnni-int8", "CPUID_7_1_EDX_PREFETCHITI": "prefetchiti", "CPUID_7_2_EDX_MCDT_NO": "mcdt-no", "CPUID_8000_0008_EBX_AMD_PSFD": "amd-psfd", --=20 2.43.0 From nobody Mon Sep 16 19:07:40 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 1721309317882435.6537693911092; Thu, 18 Jul 2024 06:28:37 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id B6C749F8; Thu, 18 Jul 2024 09:28:36 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 2299EA77; Thu, 18 Jul 2024 09:27:45 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id D672AA4C; Thu, 18 Jul 2024 09:27:40 -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 90517A4C for ; Thu, 18 Jul 2024 09:27:33 -0400 (EDT) Received: from mx-prod-mc-03.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-343-w9uEa3DTNiq3ypjGcLh0xA-1; Thu, 18 Jul 2024 09:27:31 -0400 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EB7FC1944B2D for ; Thu, 18 Jul 2024 13:27:29 +0000 (UTC) Received: from work.fritz.box (unknown [10.39.194.217]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 034F81955D47; Thu, 18 Jul 2024 13:27:28 +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=2.8 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_SBL_CSS,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721309253; h=from:from: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; bh=HLXxp58QdYlaSVQ/HGosE4RqcWjWTvg0N7xhPtPeswU=; b=EPwsgWBRdXSCAjYs/zw+oHC6Q1y/w2IeECNRhkuBNo4zE4q2P3d7il9ornBcsjJwTvAZYb bC71wRmeXXO06uM1P60TeXdQV1+pmbmfr9BevE4AT/P3CwAW5jWpRwHqxgdhN3hzydf6as ARyrhJR/DrZmR5VEteMUNBBFmU0Slt4= X-MC-Unique: w9uEa3DTNiq3ypjGcLh0xA-1 From: Tim Wiederhake To: devel@lists.libvirt.org Subject: [PATCH 2/2] cpu_map: Add GraniteRapids CPU model Date: Thu, 18 Jul 2024 15:27:24 +0200 Message-ID: <20240718132724.25387-3-twiederh@redhat.com> In-Reply-To: <20240718132724.25387-1-twiederh@redhat.com> References: <20240718132724.25387-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: GL3G5D2Y6OXBPICR5JMZTFHWC5UEHCSD X-Message-ID-Hash: GL3G5D2Y6OXBPICR5JMZTFHWC5UEHCSD X-MailFrom: twiederh@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 CC: Tim Wiederhake 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: 1721309318353116600 Content-Type: text/plain; charset="utf-8"; x-default="true" This was added in qemu commit 6d5e9694ef. Signed-off-by: Tim Wiederhake Reviewed-by: Michal Privoznik --- src/cpu_map/index.xml | 1 + src/cpu_map/meson.build | 1 + src/cpu_map/x86_GraniteRapids.xml | 200 ++++++++++++++++++ .../domaincapsdata/qemu_8.1.0-q35.x86_64.xml | 1 + .../domaincapsdata/qemu_8.1.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_8.1.0.x86_64.xml | 1 + .../domaincapsdata/qemu_8.2.0-q35.x86_64.xml | 1 + .../domaincapsdata/qemu_8.2.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_8.2.0.x86_64.xml | 1 + .../domaincapsdata/qemu_9.0.0-q35.x86_64.xml | 1 + .../domaincapsdata/qemu_9.0.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_9.0.0.x86_64.xml | 1 + .../domaincapsdata/qemu_9.1.0-q35.x86_64.xml | 1 + .../domaincapsdata/qemu_9.1.0-tcg.x86_64.xml | 1 + tests/domaincapsdata/qemu_9.1.0.x86_64.xml | 1 + 15 files changed, 214 insertions(+) create mode 100644 src/cpu_map/x86_GraniteRapids.xml diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml index d2c5af5797..39bad07f11 100644 --- a/src/cpu_map/index.xml +++ b/src/cpu_map/index.xml @@ -57,6 +57,7 @@ + =20 diff --git a/src/cpu_map/meson.build b/src/cpu_map/meson.build index ae5293e85f..89b1317558 100644 --- a/src/cpu_map/meson.build +++ b/src/cpu_map/meson.build @@ -43,6 +43,7 @@ cpumap_data =3D [ 'x86_EPYC-Milan.xml', 'x86_EPYC-Rome.xml', 'x86_features.xml', + 'x86_GraniteRapids.xml', 'x86_Haswell-IBRS.xml', 'x86_Haswell-noTSX-IBRS.xml', 'x86_Haswell-noTSX.xml', diff --git a/src/cpu_map/x86_GraniteRapids.xml b/src/cpu_map/x86_GraniteRap= ids.xml new file mode 100644 index 0000000000..6f7030ce39 --- /dev/null +++ b/src/cpu_map/x86_GraniteRapids.xml @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/domaincapsdata/qemu_8.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_8.1.0-q35.x86_64.xml index 6496cce45d..bac0b06683 100644 --- a/tests/domaincapsdata/qemu_8.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_8.1.0-q35.x86_64.xml @@ -112,6 +112,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_8.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_8.1.0-tcg.x86_64.xml index 3a1070a2c3..6c455f7ab9 100644 --- a/tests/domaincapsdata/qemu_8.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_8.1.0-tcg.x86_64.xml @@ -112,6 +112,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_8.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_8.1.0.x86_64.xml index 0e6063501c..f103da3010 100644 --- a/tests/domaincapsdata/qemu_8.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_8.1.0.x86_64.xml @@ -111,6 +111,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_8.2.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_8.2.0-q35.x86_64.xml index ab8993c6e3..784c44219c 100644 --- a/tests/domaincapsdata/qemu_8.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_8.2.0-q35.x86_64.xml @@ -113,6 +113,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_8.2.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_8.2.0-tcg.x86_64.xml index 2b48d78696..4be710044d 100644 --- a/tests/domaincapsdata/qemu_8.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_8.2.0-tcg.x86_64.xml @@ -111,6 +111,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_8.2.0.x86_64.xml b/tests/domaincapsd= ata/qemu_8.2.0.x86_64.xml index b72369a737..2cdf516964 100644 --- a/tests/domaincapsdata/qemu_8.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_8.2.0.x86_64.xml @@ -112,6 +112,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_9.0.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_9.0.0-q35.x86_64.xml index 053a985456..670314ba3e 100644 --- a/tests/domaincapsdata/qemu_9.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_9.0.0-q35.x86_64.xml @@ -113,6 +113,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_9.0.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_9.0.0-tcg.x86_64.xml index 3b5ce54f1a..13afe99cdb 100644 --- a/tests/domaincapsdata/qemu_9.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_9.0.0-tcg.x86_64.xml @@ -113,6 +113,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_9.0.0.x86_64.xml b/tests/domaincapsd= ata/qemu_9.0.0.x86_64.xml index ea54504b47..71c05e0e97 100644 --- a/tests/domaincapsdata/qemu_9.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_9.0.0.x86_64.xml @@ -112,6 +112,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_9.1.0-q35.x86_64.xml b/tests/domainc= apsdata/qemu_9.1.0-q35.x86_64.xml index bb40bf01e9..5ca6d0fdac 100644 --- a/tests/domaincapsdata/qemu_9.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_9.1.0-q35.x86_64.xml @@ -117,6 +117,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_9.1.0-tcg.x86_64.xml b/tests/domainc= apsdata/qemu_9.1.0-tcg.x86_64.xml index 60621e9bdc..133ee4d723 100644 --- a/tests/domaincapsdata/qemu_9.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_9.1.0-tcg.x86_64.xml @@ -112,6 +112,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB diff --git a/tests/domaincapsdata/qemu_9.1.0.x86_64.xml b/tests/domaincapsd= ata/qemu_9.1.0.x86_64.xml index c0e212cae0..f378000c2b 100644 --- a/tests/domaincapsdata/qemu_9.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_9.1.0.x86_64.xml @@ -116,6 +116,7 @@ Haswell-noTSX Haswell-IBRS Haswell + GraniteRapids EPYC-Rome EPYC-Milan EPYC-IBPB --=20 2.43.0