]> git.proxmox.com Git - mirror_qemu.git/commit
numa: move numa global variable nb_numa_nodes into MachineState
authorTao Xu <tao3.xu@intel.com>
Fri, 9 Aug 2019 06:57:22 +0000 (14:57 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 3 Sep 2019 14:26:55 +0000 (11:26 -0300)
commitaa57020774b690a22be72453b8e91c9b5a68c516
tree144a939fcca5737815d9134a45c44993ae36acce
parent2744ece8095b8cdb0d667654debc1d80dd57bbd3
numa: move numa global variable nb_numa_nodes into MachineState

Add struct NumaState in MachineState and move existing numa global
nb_numa_nodes(renamed as "num_nodes") into NumaState. And add variable
numa_support into MachineClass to decide which submachines support NUMA.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Tao Xu <tao3.xu@intel.com>
Message-Id: <20190809065731.9097-3-tao3.xu@intel.com>
[ehabkost: include hw/boards.h again to fix build failures]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
17 files changed:
exec.c
hw/acpi/aml-build.c
hw/arm/boot.c
hw/arm/sbsa-ref.c
hw/arm/virt-acpi-build.c
hw/arm/virt.c
hw/core/machine-hmp-cmds.c
hw/core/machine.c
hw/core/numa.c
hw/i386/acpi-build.c
hw/i386/pc.c
hw/mem/pc-dimm.c
hw/pci-bridge/pci_expander_bridge.c
hw/ppc/spapr.c
include/hw/acpi/aml-build.h
include/hw/boards.h
include/sysemu/numa.h