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] grant table interface addition?

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] grant table interface addition?
From: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>
Date: Mon, 03 Nov 2008 09:53:43 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 03 Nov 2008 01:54:12 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C52F8A09.2898F%keir.fraser@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C52F8A09.2898F%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2008-10-30 at 15:58 +0000, Keir Fraser wrote:
> On 30/10/08 15:53, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:
> 
> >>>> Keir Fraser <keir.fraser@xxxxxxxxxxxxx> 30.10.08 15:15 >>>
> >> On 30/10/08 14:06, "Jan Beulich" <jbeulich@xxxxxxxxxx> wrote:
> >>> As to PAGE_IO, wouldn't it be appropriate to set this flag on pte-s 
> >>> created
> >>> with GNTMAP_device_map? Or is the name misleading me? I'm perhaps
> >>> confused by the fact that the use of this flag is not tied to granting 
> >>> iomem
> >>> pages...
> >> 
> >> The idea was that this would grant-map pages into an iommu. Really it's not
> >> actually been used, but GNTMAP_device_map doesn't cause mappings to appear
> >> in host page tables.
> > 
> > It actually is being used in Solarflare's acceleration backend - what you 
> > say
> > makes me think this could be wrong then.
> 
> I suppose it's useful if you only want the machine address of the granted
> page, and don't care about getting a host mapping.

Yes, that's exactly what we use it for.  The guest passes pages to dom0
that it would like to have added to the buffer table (effectively the
iommu) on the NIC.  dom0 doesn't need to map these pages, but it needs
the MFN to pass to the NIC, and it uses the GNTMAP_device_map to do
this.  I can't remember off the top of my head if performing this grant
has other beneficial side effects, but it wouldn't surprise me if it
did.

Kieran


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

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