The aim of this patch is to add struct NumaState in MachineState and move existing numa global nb_numa_nodes into NumaState. And add variable numa_support into MachineClass to decide which submachines support NUMA.
Tao Xu (3): numa: move numa global variable nb_numa_nodes into MachineState numa: move numa global variable have_numa_distance into MachineState numa: move numa global variable numa_info into MachineState exec.c | 3 +++ hw/acpi/aml-build.c | 3 +++ hw/arm/boot.c | 3 +++ hw/arm/virt-acpi-build.c | 8 +++++++- hw/arm/virt.c | 7 ++++++- hw/core/machine.c | 9 ++++++-- hw/i386/acpi-build.c | 2 +- hw/i386/pc.c | 9 +++++++- hw/mem/pc-dimm.c | 2 ++ hw/pci-bridge/pci_expander_bridge.c | 2 ++ hw/ppc/spapr.c | 23 ++++++++++++++++----- hw/ppc/spapr_pci.c | 2 ++ include/hw/boards.h | 21 +++++++++++++++++++ include/sysemu/numa.h | 11 ---------- monitor.c | 2 ++ numa.c | 32 +++++++++++++++++++++-------- 16 files changed, 109 insertions(+), 30 deletions(-) -- 2.17.1