From: Keir Fraser Subject: Re: Question regarding SLAB corruption Date: Mon, 09 Jul 2007 23:34:22 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Roland Dreier , Lukas Hejtmanek Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 9/7/07 23:30, "Keir Fraser" wrote: >> And is there any more intelligent way to give big chunks of system >> memory to a PCI device for exclusive use? > > Perhaps dma_alloc_coherent/pci_alloc_consistent? These always return > machine-contiguous memory. I'm not sure if their use in this way would be an > abuse of the DMA API, though. By which I mean: if you were using them instead of alloc_pages *only* because they guarantee you machine-contiguous memory when running on Xen, then that would probably be an abuse of the DMA-API. OTOH, it may just be pointing out places in the driver where pci_alloc_consistent would be a very suitable API function to be using. -- Keir