]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Update new x86_apicid parsing rules with die_offset support
authorLike Xu <like.xu@linux.intel.com>
Wed, 12 Jun 2019 08:40:59 +0000 (16:40 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:08:03 +0000 (17:08 -0300)
commitd65af288a84d8bf8c27e55d45545f52f016c08a7
tree880d57673c8c8c41c01ea31f267e6cd9e90f8f80
parent176d2cda0dee9f4f78f604ad72d6a111e8e38f3b
i386: Update new x86_apicid parsing rules with die_offset support

In new sockets/dies/cores/threads model, the apicid of logical cpu could
imply die level info of guest cpu topology thus x86_apicid_from_cpu_idx()
need to be refactored with #dies value, so does apicid_*_offset().

To keep semantic compatibility, the legacy pkg_offset which helps to
generate CPUIDs such as 0x3 for L3 cache should be mapping to die_offset.

Signed-off-by: Like Xu <like.xu@linux.intel.com>
Message-Id: <20190612084104.34984-5-like.xu@linux.intel.com>
[ehabkost: squash unit test patch]
Message-Id: <20190612084104.34984-6-like.xu@linux.intel.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c
include/hw/i386/topology.h
target/i386/cpu.c
tests/test-x86-cpuid.c