]> git.proxmox.com Git - mirror_qemu.git/commit - hw/core/machine.c
numa: make sure that all cpus have has_node_id set if numa is enabled
authorIgor Mammedov <imammedo@redhat.com>
Tue, 30 May 2017 16:23:58 +0000 (18:23 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 5 Jun 2017 17:59:08 +0000 (14:59 -0300)
commitd41f3e750d2c06c613cb1b8db7724f0fbc0a2b14
tree2e95f755031d4b6d73c31ad404eaa30855ad3347
parent60bed6a30aa8341cbc8fae4bdc53b9eb99d80586
numa: make sure that all cpus have has_node_id set if numa is enabled

It fixes/add missing _PXM object for non mapped CPU (x86)
and missing fdt node (virt-arm).

It ensures that possible_cpus contains complete mapping if
numa is enabled by the time machine_init() is executed.

As result non completely mapped CPUs:
 1) appear in ACPI/fdt blobs
 2) QMP query-hotpluggable-cpus command shows bound nodes for such CPUs
 3) allows to drop checks for has_node_id in numa only code,
   reducing number of invariants incomplete mapping could produce
 4) moves fixup/implicit node init from runtime numa_cpu_pre_plug()
   (when CPU object is created) to machine_numa_finish_init() which
   helps to fix [1, 2] and make possible_cpus complete source
   of numa mapping available even before CPUs are created.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1496161442-96665-4-git-send-email-imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/arm/virt-acpi-build.c
hw/core/machine.c
hw/i386/acpi-build.c
hw/i386/pc.c
numa.c