i386: Expose module level in CPUID[0x1F]
authorZhao Liu <zhao1.liu@intel.com>
Wed, 24 Apr 2024 15:49:22 +0000 (23:49 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 May 2024 17:43:29 +0000 (19:43 +0200)
commit5304873acd12f7a4ddb07d3560ac5ac02a0e1060
tree49b580cd9700dbbc9cecfa41a0697ea840b7e966
parent3568adc995b3906b5cc134753a829363f08bf6e1
i386: Expose module level in CPUID[0x1F]

Linux kernel (from v6.4, with commit edc0a2b595765 ("x86/topology: Fix
erroneous smp_num_siblings on Intel Hybrid platforms") is able to
handle platforms with Module level enumerated via CPUID.1F.

Expose the module level in CPUID[0x1F] if the machine has more than 1
modules.

Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Message-ID: <20240424154929.1487382-15-zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/x86-common.c
include/hw/i386/topology.h
target/i386/cpu.c
target/i386/cpu.h