machine: move dies from X86MachineState to CpuTopology
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 15:53:03 +0000 (17:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jun 2021 14:13:48 +0000 (16:13 +0200)
commit67872eb8ed194117f5af71694374a083c3f45eb2
tree8c932318f0fb053f535edb50e3e2a5520788b2f1
parentbd80936a4f18075e0e407df180801a9743ce290c
machine: move dies from X86MachineState to CpuTopology

In order to make SMP configuration a Machine property, we need a getter as
well as a setter.  To simplify the implementation put everything that the
getter needs in the CpuTopology struct.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210617155308.928754-7-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine.c
hw/i386/pc.c
hw/i386/x86.c
include/hw/boards.h
include/hw/i386/pc.h
include/hw/i386/x86.h