]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
i386: Fix up the Node id for CPUID_8000_001E
authorBabu Moger <babu.moger@amd.com>
Tue, 19 Jun 2018 21:31:57 +0000 (17:31 -0400)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 22 Jun 2018 18:01:15 +0000 (15:01 -0300)
commit631be32155dbafa1fe886f2488127956c9120ba6
treec7c91692d2d58d587bd4efe881eec82d47d6fd0d
parentf98bbd8304112187cafc3e636c31b2a3865d2717
i386: Fix up the Node id for CPUID_8000_001E

This is part of topoext support. To keep the compatibility, it is better
we support all the combination of nr_cores and nr_threads currently
supported. By allowing more nr_cores and nr_threads, we might end up with
more nodes than we can actually support with the real hardware. We need to
fix up the node id to make this work. We can achieve this by shifting the
socket_id bits left to address more nodes.

Signed-off-by: Babu Moger <babu.moger@amd.com>
Message-Id: <1529443919-67509-2-git-send-email-babu.moger@amd.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/i386/cpu.c