]> git.proxmox.com Git - mirror_qemu.git/commit
spapr: replace numa_get_node() with lookup in pc-dimm list
authorIgor Mammedov <imammedo@redhat.com>
Tue, 5 Dec 2017 15:41:17 +0000 (16:41 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 14 Dec 2017 22:49:24 +0000 (09:49 +1100)
commitf47bd1c839d57c12207a28421a9df718fbf476ba
tree8dae93ad29e624fc5048ebffc3a0404dc0b36c26
parent7718375584a0214c951668a6e92896aaed88b289
spapr: replace numa_get_node() with lookup in pc-dimm list

SPAPR is the last user of numa_get_node() and a bunch of
supporting code to maintain numa_info[x].addr list.

Get LMB node id from pc-dimm list, which allows to
remove ~80LOC maintaining dynamic address range
lookup list.

It also removes pc-dimm dependency on numa_[un]set_mem_node_id()
and makes pc-dimms a sole source of information about which
node it belongs to and removes duplicate data from global
numa_info.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/mem/pc-dimm.c
hw/ppc/spapr.c
include/sysemu/numa.h
numa.c