16 messages in com.xensource.lists.xen-develRe: [Xen-devel] USB virt status --- H...
FromSent OnAttachments
harry11 Nov 2005 11:37.gz
Ian Pratt11 Nov 2005 15:23 
Harry Butterworth13 Nov 2005 10:27 
Keir Fraser14 Nov 2005 01:56 
harry14 Nov 2005 02:11 
harry14 Nov 2005 02:26 
Keir Fraser14 Nov 2005 02:33 
Stephen C. Tweedie14 Nov 2005 09:29 
Keir Fraser14 Nov 2005 10:41 
Stephen C. Tweedie14 Nov 2005 10:50 
Harry Butterworth14 Nov 2005 12:35 
Muli Ben-Yehuda14 Nov 2005 13:00 
Muli Ben-Yehuda14 Nov 2005 13:45 
Keir Fraser15 Nov 2005 02:23 
Muli Ben-Yehuda15 Nov 2005 11:14 
Ian Pratt15 Nov 2005 14:35 
Subject:Re: [Xen-devel] USB virt status --- Help please!!!
From:Keir Fraser (Keir@cl.cam.ac.uk)
Date:11/14/2005 01:56:32 AM
List:com.xensource.lists.xen-devel

On 13 Nov 2005, at 18:28, Harry Butterworth wrote:

Is this the right approach? Is the check in dma_map_single overzealous?

When running on Xen, just because Linux has allocated adjacent pages from its 'physical' memory map, doesn't mean they really are physically contiguous. For I/O we have to go to extra effort to really allocate truly contiguous multi-page extents.

So your code is correct. If you can preallocate buffers then you could do that with dma_alloc_coherent and that would guarantee contigous buffers....

-- Keir