Received: from eggs.gnu.org ([209.51.188.92]:56423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hH10S-0007JD-4J for qemu-devel@nongnu.org; Thu, 18 Apr 2019 02:58:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hH0qS-00060i-V0 for qemu-devel@nongnu.org; Thu, 18 Apr 2019 02:48:29 -0400 Received: from mga01.intel.com ([192.55.52.88]:17087) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hH0qS-0005vB-Kl for qemu-devel@nongnu.org; Thu, 18 Apr 2019 02:48:28 -0400 From: Tao Xu Date: Thu, 18 Apr 2019 14:45:59 +0800 Message-Id: <20190418064602.24558-1-tao3.xu@intel.com> Subject: [Qemu-devel] [PATCH v2 0/3] numa: move numa global variables into MachineState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: imammedo@redhat.com, ehabkost@redhat.com, pbonzini@redhat.com Cc: jingqi.liu@intel.com, tao3.xu@intel.com, qemu-devel@nongnu.org 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. --- Changes in v2: - fix the mistake in numa_complete_configuration in numa.c - add MachineState into some functions to avoid using qdev_get_machine - add some if experssion to avoid the NumaState is null 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 | 5 ++- hw/acpi/aml-build.c | 9 ++-- hw/arm/boot.c | 4 +- hw/arm/virt-acpi-build.c | 17 ++++--- hw/arm/virt.c | 7 ++- hw/core/machine.c | 16 +++++-- hw/i386/acpi-build.c | 4 +- hw/i386/pc.c | 9 +++- hw/mem/pc-dimm.c | 2 + hw/pci-bridge/pci_expander_bridge.c | 2 + hw/ppc/spapr.c | 37 ++++++++++++++-- hw/ppc/spapr_pci.c | 2 + include/hw/acpi/aml-build.h | 2 +- include/hw/boards.h | 21 +++++++++ include/sysemu/numa.h | 13 +----- monitor.c | 4 +- numa.c | 69 ++++++++++++++++------------- 17 files changed, 156 insertions(+), 67 deletions(-) -- 2.17.1