diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2025-07-11 18:46:01 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-07-12 15:28:22 +0200 |
commit | 5dbdcdce06d9421598e84fa77692810ccc5c3a81 (patch) | |
tree | 6acdd2050619350fd53097dec11fe6e1c4de8d78 | |
parent | af62bd3db0fde8aa132dd2a0d7dc620827ba1361 (diff) | |
download | qemu-5dbdcdce06d9421598e84fa77692810ccc5c3a81.zip qemu-5dbdcdce06d9421598e84fa77692810ccc5c3a81.tar.gz qemu-5dbdcdce06d9421598e84fa77692810ccc5c3a81.tar.bz2 |
i386/cpu: Enable 0x1f leaf for GraniteRapids by default
Host GraniteRapids 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-8-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r-- | target/i386/cpu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c index c15082e..a11e9bb 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -5239,8 +5239,12 @@ static const X86CPUDefinition builtin_x86_defs[] = { }, { .version = 3, - .note = "with gnr-sp cache model", + .note = "with gnr-sp cache model and 0x1f leaf", .cache_info = &xeon_gnr_cache_info, + .props = (PropValue[]) { + { "x-force-cpuid-0x1f", "on" }, + { /* end of list */ }, + } }, { /* end of list */ }, }, |