]> git.proxmox.com Git - mirror_qemu.git/commit
hw/i386: Adjust nr_dies with configured smp_dies for PCMachine
authorLike Xu <like.xu@linux.intel.com>
Wed, 12 Jun 2019 08:40:57 +0000 (16:40 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:08:03 +0000 (17:08 -0300)
commitcabea7dcd0e2084bdd32fcfe54f6275599f55bb7
treefc64dae3ce28aa10ff5a7f86bdc644bf1002c4e4
parentc26ae610811e8d52f4fc73e3ae0a8bc4a24d6763
hw/i386: Adjust nr_dies with configured smp_dies for PCMachine

To support multiple dies configuration on PCMachine, the best place to
set CPUX86State->nr_dies with requested PCMachineState->smp_dies is in
pc_new_cpu() and pc_cpu_pre_plug(). Refactoring pc_new_cpu() is applied
and redundant parameter "const char *typename" would be removed.

Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Message-Id: <20190612084104.34984-3-like.xu@linux.intel.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/i386/pc.c