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] Getting a bus address for granted page in dom0

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Getting a bus address for granted page in dom0
From: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
Date: Tue, 07 Nov 2006 15:34:56 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 07 Nov 2006 07:35:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1761DE8.4168%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C1761DE8.4168%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-11-07 at 11:26 +0000, Keir Fraser wrote:
> Do you need to map the rings into dom0 addr space at all? If not just do a
> GNTMAP_device_map yourself, and this will return a dev_bus_addr that you can
> poke into hardware. If you go this route you avoid using the Linux DMA
> interfaces altogether.

Thanks Keir, that was exactly what I was looking for.

I've implemented this as an extra little helper function in
xenbus_backend_client.c as an alternative to xenbus_map_ring() and
xenbus_map_ring_valloc().  Is this something of wider use/interest?  I'd
be happy to submit a patch if so.

Kieran


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

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