From: Keir Fraser Subject: Re: [RFC][PATCH] domheap optimization for NUMA Date: Thu, 03 Apr 2008 15:49:00 +0100 Message-ID: References: <47F4E234.30601@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <47F4E234.30601@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andre Przywara Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 3/4/08 14:57, "Andre Przywara" wrote: >> Yes it is needed if your patch is to work across all architectures, not just >> x86! Your current patch is broken in this respect because you quite >> unnecessarily define domain_to_node() and vcpu_to_node() in asm/numa.h >> rather than xen/numa.h. > Right you are. I fixed this below. While playing around with the > headers, I realized that numa.h is not needed at all in > common/page_alloc.c and common/sysctl.c. Can you confirm this? Or is > this needed for the other architectures? It's polite to directly include stuff you use and not depend on transitive header inclusion, as that can be fragile. > Signed-off-by: Andre Przywara > > >> Please address architectural portability and re-send the patch. Apart from >> that I think it's just about ready to go in. > I am just trying to install an IA64 cross compiler, but it seems this > will take some time... The ia64 guys will thank you for it, even if I don't require it! -- Keir