WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] USB virt status --- Help please!!!


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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel