From: Jiri Denemark Date: Thu, 6 Nov 2025 09:56:27 +0000 (+0100) Subject: cpu_map: Add YongFeng CPU model X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98b4609b51309acae142670f0c406f4f3c18f4c1;p=thirdparty%2Flibvirt.git cpu_map: Add YongFeng CPU model Signed-off-by: Jiri Denemark Reviewed-by: Michal Privoznik --- 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 @@ + + 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 = [ 'x86_Westmere-v1.xml', 'x86_Westmere-v2.xml', 'x86_Westmere.xml', + 'x86_YongFeng-v1.xml', + 'x86_YongFeng.xml', ] 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_models_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", # 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"), ]) 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 @@ Westmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.0.0-q35.x86_64.xml b/tests/domaincapsdata/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 athlon-v1 core2duo diff --git a/tests/domaincapsdata/qemu_10.0.0-tcg.x86_64.xml b/tests/domaincapsdata/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 athlon-v1 core2duo diff --git a/tests/domaincapsdata/qemu_10.0.0.x86_64+amdsev.xml b/tests/domaincapsdata/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 @@ Westmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.0.0.x86_64.xml b/tests/domaincapsdata/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/tests/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 @@ Westmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.1.0-q35.x86_64.xml b/tests/domaincapsdata/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/tests/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 athlon-v1 core2duo diff --git a/tests/domaincapsdata/qemu_10.1.0-tcg.x86_64.xml b/tests/domaincapsdata/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 athlon-v1 core2duo diff --git a/tests/domaincapsdata/qemu_10.1.0.x86_64+inteltdx.xml b/tests/domaincapsdata/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 @@ Westmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.1.0.x86_64.xml b/tests/domaincapsdata/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/domaincapsdata/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 @@ Westmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + athlon diff --git a/tests/domaincapsdata/qemu_10.2.0-tcg.x86_64.xml b/tests/domaincapsdata/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 athlon-v1 core2duo diff --git a/tests/domaincapsdata/qemu_10.2.0.x86_64.xml b/tests/domaincapsdata/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 @@ Westmere-IBRS Westmere-v1 Westmere-v2 + YongFeng + + + + + + + + + + + + + + + YongFeng-v1 + + + + + + + + + + + + + + athlon