]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/i386/acpi-build: Get NUMA information from struct NumaState
authorJingqi Liu <jingqi.liu@intel.com>
Mon, 23 Aug 2021 01:12:54 +0000 (09:12 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 4 Sep 2021 21:34:04 +0000 (17:34 -0400)
commite77af21a7a28e7b39f8e1f9b46d26d23d9a2396a
treea911d599700a26bb543edd86cf2586ca5d591219
parentae4003738ff0e1e5e6e6ff6e7c593bb443d5df04
hw/i386/acpi-build: Get NUMA information from struct NumaState

Since commits aa57020774b ("numa: move numa global variable
nb_numa_nodes into MachineState") and 7e721e7b10e ("numa: move
numa global variable numa_info into MachineState"), we can get
NUMA information completely from MachineState::numa_state.

Remove PCMachineState::numa_nodes and PCMachineState::node_mem,
since they are just copied from MachineState::numa_state.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Jingqi Liu <jingqi.liu@intel.com>
Message-Id: <20210823011254.28506-1-jingqi.liu@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/acpi-build.c
hw/i386/pc.c
include/hw/i386/pc.h