From: Keir Fraser Subject: Re: Re: [PATCH 1/6][RESEND] xen: Add NUMA support to Xen Date: Mon, 15 May 2006 18:17:14 +0100 Message-ID: <398b24ac6e2efe186405c7014f89bbd5@cl.cam.ac.uk> References: <20060501215648.GU16776@us.ibm.com> <28761a939c7a83af7fa1c34e8700025f@cl.cam.ac.uk> <20060512151223.GD16876@us.ibm.com> <095d150f0370d6aeb03f23253d0ccaac@cl.cam.ac.uk> <70145f7d61d476ea095803ce06d3cb93@cl.cam.ac.uk> <20060515171105.GK16876@us.ibm.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060515171105.GK16876@us.ibm.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: Ryan Harper Cc: Xen Devel , Andi Kleen , Ryan Grimm List-Id: xen-devel@lists.xenproject.org On 15 May 2006, at 18:11, Ryan Harper wrote: > When I looked at the x86_64 NUMA code, I noticed that SRAT parsing was > done by ACPI_NUMA (drivers/acpi/numa.c). That code requires more ACPI > support than Xen currently has available. Rather than pulling in all > of > that ACPI, I chose to start with the i386 SRAT table parser which was > sufficient for both i386 and x86_64. I would think that using the > modified i386 srat.c for parser gets the job done without bringing in > all of the support needed to compile drivers/acpi/numa.c in Xen. > > How about putting the two together: use the i386 SRAT parser and the > x86_64 srat.c for structures and initialization? I guess it depends how cleanly it can be done. Can we use the x86/64 logic pretty much unmodified, but then pull in bits of the i386 parsing code as functions that the x86/64 code calls rather than the full-blown acpi routines it would usually call into? Or would it be possible to pull in drivers/acpi/numa.c without also having to pull in all 80kloc+ of acpi crap? This probably needs some thought and/or experimentation! -- Keir