From: Keir Fraser Subject: Re: comment request: dom0 dma on large memory systems Date: Fri, 3 Jun 2005 09:58:30 +0100 Message-ID: <7e7e267e0479a0a808f5eb783a1015e3@cl.cam.ac.uk> References: <20050603073500.GL9951@us.ibm.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050603073500.GL9951@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: Scott Parish Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Yes, something like this is obviously required, and introducing a concept of zones seems a sensible way to go. I haven't looked at your patch in great detail but it looks along the right lines. :-) -- Keir On 3 Jun 2005, at 08:35, Scott Parish wrote: > The attached patch is a (non-functional) prototype of my proposed > solution to the xen. The idea is to add a third MEMZONE for > dma'able memory, change the alloc_domheap_pages() interface so the > caller can request only dma memory if needed. Finally, internal to > common/page_alloc.c, split memory between MEMZONE_DOM and > MEMZONE_DMADOM > based on the address. > > > proposed solution to dom0: > > Dom0 might have memory allocated to it from both high and low memory. > The easiest solution would probably be to scan for and preallocate a > chunk of memory that will work for dma, something like what pci-gart.c > does. (or work on letting pci-gart.c work under xen)