From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: Re: [PATCH 1/6][RESEND] xen: Add NUMA support to Xen Date: Mon, 15 May 2006 22:46:30 +0200 Message-ID: <200605152246.30374.ak@suse.de> References: <20060501215648.GU16776@us.ibm.com> <20060515203242.GM16876@us.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060515203242.GM16876@us.ibm.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ryan Harper Cc: Xen Devel , Ryan Grimm List-Id: xen-devel@lists.xenproject.org > What I'm fighting now is getting linux/arch/x86_64/mm/numa.c to build. > Some of the structures to track numa info (struct pglist_data) are > rather linux specific and include lots of structures related to Linux mm > zones, check out linux/include/linux/mmzone.h. I attempted to avoid > bring in that in, but the pfn_to_nid/phys_to_nid macros are based on > memnodemap array. I guess you can just replace setup_node_bootmem / setup_node_zones / numa_free_all_bootmem with Xen specific functions. They should be the only functions dealing with pglists and they're relatively straight forward. -Andi