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-users

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

To: mjfeeney@xxxxxxxxxxx
Subject: Re: [Xen-users] Question on pseudo-physical memory
From: Muli Ben-Yehuda <muli@xxxxxxxxxx>
Date: Wed, 2 Aug 2006 08:43:06 +0300
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 01 Aug 2006 22:44:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <BAY115-W2AAAD3C00D6971D6341FFDC5D0@xxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <BAY115-W2AAAD3C00D6971D6341FFDC5D0@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
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

<Prev in Thread] Current Thread [Next in Thread>