aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-07-11 18:46:00 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2025-07-12 15:28:22 +0200
commite468c5e44435f5cbe1dd61099e6991a66c25988f (patch)
treef951a92e5e8e4462af8e09d795ba5ab9f0542f6d
parentbf4032561447a518e9cc4af308ef1a15023bc4c6 (diff)
downloadqemu-e468c5e44435f5cbe1dd61099e6991a66c25988f.zip
qemu-e468c5e44435f5cbe1dd61099e6991a66c25988f.tar.gz
qemu-e468c5e44435f5cbe1dd61099e6991a66c25988f.tar.bz2
i386/cpu: Enable 0x1f leaf for SierraForest by default
Host SierraForest CPU has 0x1f leaf by default, so that enable it for Guest CPU by default as well. Suggested-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.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-7-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--target/i386/cpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 482979a..668f3e6 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -5389,8 +5389,11 @@ static const X86CPUDefinition builtin_x86_defs[] = {
},
{
.version = 3,
- .note = "with srf-sp cache model",
+ .note = "with srf-sp cache model and 0x1f leaf",
.cache_info = &xeon_srf_cache_info,
+ .props = (PropValue[]) {
+ { "x-force-cpuid-0x1f", "on" },
+ }
},
{ /* end of list */ },
},