From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Kpp-0002xn-9o for qemu-devel@nongnu.org; Fri, 12 Jun 2015 05:01:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z3Kpk-0000mb-Bh for qemu-devel@nongnu.org; Fri, 12 Jun 2015 05:01:09 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:55404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z3Kpj-0000jX-GR for qemu-devel@nongnu.org; Fri, 12 Jun 2015 05:01:04 -0400 Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 12 Jun 2015 14:31:01 +0530 Received: from d28relay03.in.ibm.com (d28relay03.in.ibm.com [9.184.220.60]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id 0944F1258056 for ; Fri, 12 Jun 2015 14:33:30 +0530 (IST) Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay03.in.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5C90go036045032 for ; Fri, 12 Jun 2015 14:30:42 +0530 Received: from d28av05.in.ibm.com (localhost [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5C90YoG024050 for ; Fri, 12 Jun 2015 14:30:34 +0530 From: Bharata B Rao Date: Fri, 12 Jun 2015 14:30:24 +0530 Message-Id: <1434099628-18102-1-git-send-email-bharata@linux.vnet.ibm.com> Subject: [Qemu-devel] [RFC PATCH v1 0/4] Refactoring pc_dimm_plug and NUMA node lookup API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, imammedo@redhat.com, Bharata B Rao , ehabkost@redhat.com, david@gibson.dropbear.id.au 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