]> www.infradead.org Git - users/dwmw2/qemu.git/commit
i386: Split topology types of CPUID[0x1F] from the definitions of CPUID[0xB]
authorZhao Liu <zhao1.liu@intel.com>
Wed, 24 Apr 2024 15:49:18 +0000 (23:49 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 22 May 2024 17:43:29 +0000 (19:43 +0200)
commit0f6ed7ba135a45a4a28bddda74d1bf0061174b98
tree19b5f6e388ee064c8a2c9deb0c7b5285003ddf13
parent6ddeb0ec8c29d51be49d5336c6d6508972b6d49c
i386: Split topology types of CPUID[0x1F] from the definitions of CPUID[0xB]

CPUID[0xB] defines SMT, Core and Invalid types, and this leaf is shared
by Intel and AMD CPUs.

But for extended topology levels, Intel CPU (in CPUID[0x1F]) and AMD CPU
(in CPUID[0x80000026]) have the different definitions with different
enumeration values.

Though CPUID[0x80000026] hasn't been implemented in QEMU, to avoid
possible misunderstanding, split topology types of CPUID[0x1F] from the
definitions of CPUID[0xB] and introduce CPUID[0x1F]-specific topology
types.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Tested-by: Yongwei Ma <yongwei.ma@intel.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Babu Moger <babu.moger@amd.com>
Message-ID: <20240424154929.1487382-11-zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/cpu.c
target/i386/cpu.h