diff options
author | Zhao Liu <zhao1.liu@intel.com> | 2024-04-24 23:49:22 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-05-22 19:43:29 +0200 |
commit | 5304873acd12f7a4ddb07d3560ac5ac02a0e1060 (patch) | |
tree | 49b580cd9700dbbc9cecfa41a0697ea840b7e966 /hw | |
parent | 3568adc995b3906b5cc134753a829363f08bf6e1 (diff) | |
download | qemu-5304873acd12f7a4ddb07d3560ac5ac02a0e1060.zip qemu-5304873acd12f7a4ddb07d3560ac5ac02a0e1060.tar.gz qemu-5304873acd12f7a4ddb07d3560ac5ac02a0e1060.tar.bz2 |
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>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/i386/x86-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/i386/x86-common.c b/hw/i386/x86-common.c index 994f842..34dfa89 100644 --- a/hw/i386/x86-common.c +++ b/hw/i386/x86-common.c @@ -273,7 +273,7 @@ void x86_cpu_pre_plug(HotplugHandler *hotplug_dev, if (ms->smp.modules > 1) { env->nr_modules = ms->smp.modules; - /* TODO: Expose module level in CPUID[0x1F]. */ + set_bit(CPU_TOPO_LEVEL_MODULE, env->avail_cpu_topo); } if (ms->smp.dies > 1) { |