]> git.proxmox.com Git - mirror_qemu.git/commit
hw/boards: Add struct CpuTopology to MachineState
authorLike Xu <like.xu@linux.intel.com>
Sat, 18 May 2019 20:54:19 +0000 (04:54 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 5 Jul 2019 20:07:35 +0000 (17:07 -0300)
commitedeeec911702870adf8866311b5feb2bdaaee2ce
treef616d4490038f1b090d19c3b4742c2e6dc6abff7
parentd2c5f91ca944aaade642624397e1853801bbc744
hw/boards: Add struct CpuTopology to MachineState

The cpu topology property CpuTopology is added to the MachineState
and its members are initialized with the leagcy global smp variables.

From this commit, the code in the system emulation mode is supposed to
use cpu topology variables from MachineState instead of the global ones
defined in vl.c and there is no semantic change.

Suggested-by: Igor Mammedov <imammedo@redhat.com>
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20190518205428.90532-2-like.xu@linux.intel.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/hw/boards.h
vl.c