From: Zhao Liu Date: Fri, 11 Jul 2025 10:46:01 +0000 (+0800) Subject: i386/cpu: Enable 0x1f leaf for GraniteRapids by default X-Git-Tag: v10.1.0-rc0~21^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dbdcdce06d9421598e84fa77692810ccc5c3a81;p=thirdparty%2Fqemu.git 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 Reviewed-by: Dapeng Mi Tested-by: Yi Lai Signed-off-by: Zhao Liu Link: https://lore.kernel.org/r/20250711104603.1634832-8-zhao1.liu@intel.com Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/cpu.c b/target/i386/cpu.c index c15082e8af..a11e9bb111 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 */ }, },