From nobody Fri Nov 21 10:09:39 2025 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=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1762446852; cv=none; d=zohomail.com; s=zohoarc; b=KCViQ/F5iahSXXVBjkP1ro7DCyUAaVS7GvMWKESHSUqO/z9LC9Khea+TUYT1rPjmkW2jQ4R6lLH9hLkRluuq9iX+26mmK2aXyP3jd3dwVx1eOKF5sN3G/8/VV4D4n9Zbc1KnqsuQOZCCJ9XRzZv/5FK1Qh9hLpKYRzT+IBu0LJM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1762446852; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=dFe29oUN5ubyCCopoVeVhmGjfLuEzebVnkEc4SloXoc=; b=cP1SWz2neqqISj6P7veN8l4l2vf3MuD7NOBL3faKwxcDiKf8B+gxeyiUmv20JYH+ruIEpjVc+31WCuW2v0mcC/CwyjBNTgXMbBu1YeGHew7lfRzopmoru+Su4XdvlKB8/q4+5FaF80+4L71prsS5rlnprpa+7rE/FhC+OLm8JRc= ARC-Authentication-Results: i=1; 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=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1762446852924107.63528356328482; Thu, 6 Nov 2025 08:34:12 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 993) id B6A3C4190E; Thu, 6 Nov 2025 11:34:11 -0500 (EST) Received: from [172.19.199.29] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id 1ED47443C3; Thu, 6 Nov 2025 10:59:21 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 993) id 20AA9449C8; Thu, 6 Nov 2025 10:58:57 -0500 (EST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 7481F4431B for ; Thu, 6 Nov 2025 10:49:40 -0500 (EST) Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-473-Y7r784g8Pd6eqMx3dDjfVg-1; Thu, 06 Nov 2025 10:49:38 -0500 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F22AC1800343 for ; Thu, 6 Nov 2025 15:49:36 +0000 (UTC) Received: from orkuz (unknown [10.43.3.115]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 8C01D19560A7 for ; Thu, 6 Nov 2025 15:49:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1762444180; 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=dFe29oUN5ubyCCopoVeVhmGjfLuEzebVnkEc4SloXoc=; b=c0ZmvILkrbDkrexGxp+9CjzFIAaYodIjVE92aSLbbrLbv6Bx0f0YI/ILbrQPsSQYhV/4sz PPUARTylZ8DLlchcRAtKGpPczIPcKAwwpOJdGhVkNvtqsuR7O8b4iOflXSMnAsc6RGVrfJ lWPoL8Kblze6XmQtl9ZWMz2MfU4UkcU= X-MC-Unique: Y7r784g8Pd6eqMx3dDjfVg-1 X-Mimecast-MFC-AGG-ID: Y7r784g8Pd6eqMx3dDjfVg_1762444177 To: devel@lists.libvirt.org Subject: [PATCH 27/29] cpu_map: Add YongFeng CPU model Date: Thu, 6 Nov 2025 16:48:44 +0100 Message-ID: <2ac291398911cb9bd17b3bdca7f9b66a49b8cbc7.1762444082.git.jdenemar@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: jsEqDbaB0TGQ2hJUJYEMsHYYEWbo-8CZWwvrUdiHqxk_1762444177 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: HLGNR26GEIDG6525XS3CDB25DICKA4BI X-Message-ID-Hash: HLGNR26GEIDG6525XS3CDB25DICKA4BI X-MailFrom: jdenemar@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Jiri Denemark via Devel Reply-To: Jiri Denemark X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1762446854816158501 Content-Type: text/plain; charset="utf-8" From: Jiri Denemark Signed-off-by: Jiri Denemark --- src/cpu_map/index.xml | 2 + src/cpu_map/meson.build | 2 + src/cpu_map/sync_qemu_models_i386.py | 3 + src/cpu_map/x86_YongFeng-v1.xml | 6 + src/cpu_map/x86_YongFeng.xml | 158 ++++++++++++++++++ .../qemu_10.0.0-q35.x86_64+amdsev.xml | 28 ++++ .../domaincapsdata/qemu_10.0.0-q35.x86_64.xml | 36 ++++ .../qemu_10.0.0-tcg.x86_64+amdsev.xml | 36 ++++ .../domaincapsdata/qemu_10.0.0-tcg.x86_64.xml | 36 ++++ .../qemu_10.0.0.x86_64+amdsev.xml | 28 ++++ tests/domaincapsdata/qemu_10.0.0.x86_64.xml | 36 ++++ .../qemu_10.1.0-q35.x86_64+inteltdx.xml | 26 +++ .../domaincapsdata/qemu_10.1.0-q35.x86_64.xml | 38 +++++ .../qemu_10.1.0-tcg.x86_64+inteltdx.xml | 36 ++++ .../domaincapsdata/qemu_10.1.0-tcg.x86_64.xml | 36 ++++ .../qemu_10.1.0.x86_64+inteltdx.xml | 26 +++ tests/domaincapsdata/qemu_10.1.0.x86_64.xml | 38 +++++ .../domaincapsdata/qemu_10.2.0-q35.x86_64.xml | 30 ++++ .../domaincapsdata/qemu_10.2.0-tcg.x86_64.xml | 36 ++++ tests/domaincapsdata/qemu_10.2.0.x86_64.xml | 30 ++++ 20 files changed, 667 insertions(+) create mode 100644 src/cpu_map/x86_YongFeng-v1.xml create mode 100644 src/cpu_map/x86_YongFeng.xml diff --git a/src/cpu_map/index.xml b/src/cpu_map/index.xml index 37dbf7f4de..74bdcc3a6c 100644 --- a/src/cpu_map/index.xml +++ b/src/cpu_map/index.xml @@ -184,6 +184,8 @@ =20 + + =20 diff --git a/src/cpu_map/meson.build b/src/cpu_map/meson.build index a623b51e09..cef433f60a 100644 --- a/src/cpu_map/meson.build +++ b/src/cpu_map/meson.build @@ -189,6 +189,8 @@ cpumap_data =3D [ 'x86_Westmere-v1.xml', 'x86_Westmere-v2.xml', 'x86_Westmere.xml', + 'x86_YongFeng-v1.xml', + 'x86_YongFeng.xml', ] =20 install_data(cpumap_data, install_dir: pkgdatadir / 'cpu_map') diff --git a/src/cpu_map/sync_qemu_models_i386.py b/src/cpu_map/sync_qemu_m= odels_i386.py index 20d2b36844..447a77f389 100755 --- a/src/cpu_map/sync_qemu_models_i386.py +++ b/src/cpu_map/sync_qemu_models_i386.py @@ -111,6 +111,7 @@ def translate_feature(name, model): "CPUID_24_0_EBX_AVX10_128": "avx10-128", "CPUID_24_0_EBX_AVX10_256": "avx10-256", "CPUID_24_0_EBX_AVX10_512": "avx10-512", + "CPUID_APM_INVTSC": "invtsc", "CPUID_8000_0007_EBX_OVERFLOW_RECOV": "overflow-recov", "CPUID_8000_0007_EBX_SUCCOR": "succor", "CPUID_8000_0008_EBX_AMD_PSFD": "amd-psfd", @@ -239,6 +240,7 @@ def translate_feature(name, model): "MSR_CORE_CAP_SPLIT_LOCK_DETECT": "split-lock-detect", "MSR_ARCH_CAP_GDS_NO": "gds-no", "MSR_ARCH_CAP_RFDS_NO": "rfds-no", + "MSR_ARCH_CAP_SSB_NO": "ssb-no", =20 # FEAT_VMX_PROCBASED_CTLS "VMX_CPU_BASED_VIRTUAL_INTR_PENDING": "vmx-vintr-pending", @@ -357,6 +359,7 @@ def translate_feature(name, model): name in ("MSR_VMX_EPT_UC", "MSR_VMX_EPT_WB"), name in ("MSR_VMX_EPT_INVVPID_SINGLE_CONTEXT"), name in ("x-force-cpuid-0x1f", "avx10-version"), + name in ("VMX_VM_EXIT_HOST_ADDR_SPACE_SIZE"), ]) =20 if ignore: diff --git a/src/cpu_map/x86_YongFeng-v1.xml b/src/cpu_map/x86_YongFeng-v1.= xml new file mode 100644 index 0000000000..86c9bae6bd --- /dev/null +++ b/src/cpu_map/x86_YongFeng-v1.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/cpu_map/x86_YongFeng.xml b/src/cpu_map/x86_YongFeng.xml new file mode 100644 index 0000000000..997f1b0988 --- /dev/null +++ b/src/cpu_map/x86_YongFeng.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/domaincapsdata/qemu_10.0.0-q35.x86_64+amdsev.xml b/tests= /domaincapsdata/qemu_10.0.0-q35.x86_64+amdsev.xml index 0a79694ba6..b7debc22a5 100644 --- a/tests/domaincapsdata/qemu_10.0.0-q35.x86_64+amdsev.xml +++ b/tests/domaincapsdata/qemu_10.0.0-q35.x86_64+amdsev.xml @@ -697,6 +697,34 @@ Wes= tmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.0.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_10.0.0-q35.x86_64.xml index 14366a25d0..e543997db2 100644 --- a/tests/domaincapsdata/qemu_10.0.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.0.0-q35.x86_64.xml @@ -1588,6 +1588,42 @@ + YongFeng + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.0.0-tcg.x86_64+amdsev.xml b/tests= /domaincapsdata/qemu_10.0.0-tcg.x86_64+amdsev.xml index b1b6324b2a..134f2c5847 100644 --- a/tests/domaincapsdata/qemu_10.0.0-tcg.x86_64+amdsev.xml +++ b/tests/domaincapsdata/qemu_10.0.0-tcg.x86_64+amdsev.xml @@ -1700,6 +1700,42 @@ + YongFeng + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + athlon<= /model> athlon-v1 cor= e2duo diff --git a/tests/domaincapsdata/qemu_10.0.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_10.0.0-tcg.x86_64.xml index 00b1b6da88..494152ea41 100644 --- a/tests/domaincapsdata/qemu_10.0.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.0.0-tcg.x86_64.xml @@ -1700,6 +1700,42 @@ + YongFeng + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + athlon<= /model> athlon-v1 cor= e2duo diff --git a/tests/domaincapsdata/qemu_10.0.0.x86_64+amdsev.xml b/tests/dom= aincapsdata/qemu_10.0.0.x86_64+amdsev.xml index 7a6830151a..093ce552e8 100644 --- a/tests/domaincapsdata/qemu_10.0.0.x86_64+amdsev.xml +++ b/tests/domaincapsdata/qemu_10.0.0.x86_64+amdsev.xml @@ -696,6 +696,34 @@ Wes= tmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.0.0.x86_64.xml b/tests/domaincaps= data/qemu_10.0.0.x86_64.xml index 047edf1206..bcb0bc56e0 100644 --- a/tests/domaincapsdata/qemu_10.0.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.0.0.x86_64.xml @@ -1587,6 +1587,42 @@ + YongFeng + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.1.0-q35.x86_64+inteltdx.xml b/tes= ts/domaincapsdata/qemu_10.1.0-q35.x86_64+inteltdx.xml index ae7c20c4cb..1bf8b2bf6f 100644 --- a/tests/domaincapsdata/qemu_10.1.0-q35.x86_64+inteltdx.xml +++ b/tests/domaincapsdata/qemu_10.1.0-q35.x86_64+inteltdx.xml @@ -704,6 +704,32 @@ Wes= tmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.1.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_10.1.0-q35.x86_64.xml index 503429daa5..f2bdfd0b6a 100644 --- a/tests/domaincapsdata/qemu_10.1.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.1.0-q35.x86_64.xml @@ -1893,6 +1893,44 @@ + YongFeng + + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.1.0-tcg.x86_64+inteltdx.xml b/tes= ts/domaincapsdata/qemu_10.1.0-tcg.x86_64+inteltdx.xml index fd1740133c..40367a5723 100644 --- a/tests/domaincapsdata/qemu_10.1.0-tcg.x86_64+inteltdx.xml +++ b/tests/domaincapsdata/qemu_10.1.0-tcg.x86_64+inteltdx.xml @@ -1934,6 +1934,42 @@ + YongFeng + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + athlon<= /model> athlon-v1 cor= e2duo diff --git a/tests/domaincapsdata/qemu_10.1.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_10.1.0-tcg.x86_64.xml index 289ecc903d..93f98741b8 100644 --- a/tests/domaincapsdata/qemu_10.1.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.1.0-tcg.x86_64.xml @@ -2050,6 +2050,42 @@ + YongFeng + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + athlon<= /model> athlon-v1 cor= e2duo diff --git a/tests/domaincapsdata/qemu_10.1.0.x86_64+inteltdx.xml b/tests/d= omaincapsdata/qemu_10.1.0.x86_64+inteltdx.xml index cdf4390c6c..60b061cac4 100644 --- a/tests/domaincapsdata/qemu_10.1.0.x86_64+inteltdx.xml +++ b/tests/domaincapsdata/qemu_10.1.0.x86_64+inteltdx.xml @@ -703,6 +703,32 @@ Wes= tmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.1.0.x86_64.xml b/tests/domaincaps= data/qemu_10.1.0.x86_64.xml index 645f4c83ab..ab92031736 100644 --- a/tests/domaincapsdata/qemu_10.1.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.1.0.x86_64.xml @@ -1892,6 +1892,44 @@ + YongFeng + + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.2.0-q35.x86_64.xml b/tests/domain= capsdata/qemu_10.2.0-q35.x86_64.xml index b5881d5ba4..b0bd080010 100644 --- a/tests/domaincapsdata/qemu_10.2.0-q35.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.2.0-q35.x86_64.xml @@ -881,6 +881,36 @@ Wes= tmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.2.0-tcg.x86_64.xml b/tests/domain= capsdata/qemu_10.2.0-tcg.x86_64.xml index 802c8f3a51..28a4593e6b 100644 --- a/tests/domaincapsdata/qemu_10.2.0-tcg.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.2.0-tcg.x86_64.xml @@ -2050,6 +2050,42 @@ + YongFeng + + + + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + + + + athlon<= /model> athlon-v1 cor= e2duo diff --git a/tests/domaincapsdata/qemu_10.2.0.x86_64.xml b/tests/domaincaps= data/qemu_10.2.0.x86_64.xml index d196ab09f9..7fb145343b 100644 --- a/tests/domaincapsdata/qemu_10.2.0.x86_64.xml +++ b/tests/domaincapsdata/qemu_10.2.0.x86_64.xml @@ -880,6 +880,36 @@ Wes= tmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + athlon --=20 2.51.0