On 31/1/24 11:13, Zhao Liu wrote:
From: Zhao Liu <zhao1....@intel.com>

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....@intel.com>
Tested-by: Babu Moger <babu.mo...@amd.com>
Tested-by: Yongwei Ma <yongwei...@intel.com>
Acked-by: Michael S. Tsirkin <m...@redhat.com>
---
Changes since v3:
  * New commit to prepare to refactor CPUID[0x1F] encoding.
---
  target/i386/cpu.c | 14 +++++++-------
  target/i386/cpu.h | 13 +++++++++----
  2 files changed, 16 insertions(+), 11 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to