Host YongFeng CPU has 0x1f leaf by default, so that enable it for Guest CPU by default as well.
Suggested-by: Ewan Hai <ewanhai...@zhaoxin.com> Tested-by: Yi Lai <yi1....@intel.com> Signed-off-by: Zhao Liu <zhao1....@intel.com> --- Changes Since v1: * New patch suggested by Ewan. --- target/i386/cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 44394fa72248..8d67cadec2f2 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -6543,8 +6543,11 @@ 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 */ } } -- 2.34.1