Hi, This is the next version of the NUMA lookup API v0 that I posted earlier. In this version, I have added a patch to factor out generic code from pc_dimm_plug() so that the same can be used by other architectures. I combined NUMA lookup API and this patch together since they are related and touch common code.
This version is based on the feedback I received for my v0 post: https://lists.gnu.org/archive/html/qemu-devel/2015-05/msg01078.html Bharata B Rao (4): pc,pc-dimm: Factor out reusable parts in pc_dimm_plug to a separate routine numa,pc-dimm: Store pc-dimm memory information in numa_info numa: Store boot memory address range in node_info numa: API to lookup NUMA node by address hw/i386/acpi-build.c | 2 +- hw/i386/pc.c | 90 +++++++++--------------------------------------- hw/mem/pc-dimm.c | 84 ++++++++++++++++++++++++++++++++++++++++++++ include/hw/i386/pc.h | 4 +-- include/hw/mem/pc-dimm.h | 9 +++++ include/sysemu/numa.h | 11 ++++++ numa.c | 82 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 206 insertions(+), 76 deletions(-) -- 2.1.0
