[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Question on pseudo-physical memory



On Tue, Aug 01, 2006 at 01:04:22PM -0400, mjfeeney@xxxxxxxxxxx wrote:

> Does this mean that a Domain0 Linux kernel driver which allocated
> kernel memory with kmalloc() or __get_free_pages() may not receive
> memory that is physically contiguous in the underlying real memory?

Yep.

> I ask because this could cause an issue for a device driver that
> must build scatter/gather lists for an external device.  If this is
> true, is there documentation available on what's required to build a
> valid scatter/gather list which contains real physically contiguous
> segments?

If your driver is using the DMA API properly as it should, this should
"just work", since the XenLinux DMA API implementations do the right
thing (e.g., using swiotlb for bouncing buffer which are not contigous
in machine memory).

Cheers,
Muli



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.