summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-07-11 18:46:03 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-07-12 15:28:22 +0200
commit8113b7f0e662c138a4d0a739807cc3ad33bca8b3 (patch)
tree78a620611c689aeb9d44629e7f9a99532cc3a4b9
parent1bf465f3e0a786bf3267931461c0c15fe6232bc8 (diff)
downloadfocaccia-qemu-8113b7f0e662c138a4d0a739807cc3ad33bca8b3.tar.gz
focaccia-qemu-8113b7f0e662c138a4d0a739807cc3ad33bca8b3.zip
i386/cpu: Enable 0x1f leaf for YongFeng by default
Host YongFeng CPU has 0x1f leaf by default, so that enable it for
Guest CPU by default as well.

Suggested-by: Ewan Hai <ewanhai-oc@zhaoxin.com>
Tested-by: Yi Lai <yi1.lai@intel.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250711104603.1634832-10-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--target/i386/cpu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 216e0232df..4f0c973446 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -6548,8 +6548,12 @@ static const X86CPUDefinition builtin_x86_defs[] = {
             },
             {
                 .version = 3,
-                .note = "with the cache model",
+                .note = "with the cache model and 0x1f leaf",
                 .cache_info = &yongfeng_cache_info,
+                .props = (PropValue[]) {
+                    { "x-force-cpuid-0x1f", "on" },
+                    { /* end of list */ },
+                }
             },
             { /* end of list */ }
         }