From mboxrd@z Thu Jan 1 00:00:00 1970 From: tgh Subject: Re: Getting a bus address for granted page in dom0 Date: Mon, 18 Jun 2007 17:44:55 +0800 Message-ID: <46765417.1010104@ncic.ac.cn> References: <1162913696.4141.28.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1162913696.4141.28.camel@moonstone.uk.level5networks.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kieran Mansley Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org hi I try to read the granttable code of xen,I am confused about some fields in the struct grant_table,such as struct grant_entry **shared; struct active_grant_entry **active; struct grant_mapping **maptrack; what are the functions for the three structures ? I am confused about it could you help me Thanks in advance Kieran Mansley =D0=B4=B5=C0: > On Tue, 2006-11-07 at 11:26 +0000, Keir Fraser wrote: > =20 >> 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 y= ou can >> poke into hardware. If you go this route you avoid using the Linux DMA >> interfaces altogether. >> =20 > > 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@lists.xensource.com > http://lists.xensource.com/xen-devel > > =20