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] question on iommu _map_page

To: Kaushik Kumar Ram <kaushik@xxxxxxxx>
Subject: Re: [Xen-devel] question on iommu _map_page
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Fri, 11 Jun 2010 09:32:50 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 11 Jun 2010 01:33:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C0DB17AF-42E4-4AB6-9A5E-E7D2B9DC5A96@xxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcsI6DrjU0mT8YO1QF6y7Z0En0BjuwAWHJmr
Thread-topic: [Xen-devel] question on iommu _map_page
User-agent: Microsoft-Entourage/12.24.0.100205
On 10/06/2010 22:59, "Kaushik Kumar Ram" <kaushik@xxxxxxxx> wrote:

>> Actually I've implemented the better fix as xen-unstable:21476. Hope that
>> works okay for you.
> 
> 
> Checking if act->pin is zero before calling iommu_unmap_page() (in
> grant_table.c) is not sufficient since there can be multiple
> active grants all referring to the same mfn. In fact I came across iommu page
> faults because pages were
> getting unmapped from the IOMMU when active grants referring to these pages
> were still around.
> Ideally, there needs to be a per-page count of how many IOMMU mappings exists
> for a page. 
> I can't think of an obvious fix for this problem. For my purposes, I hacked
> page_info to add another counter which I guess is not an acceptable solution!

See if xen-unstable:21597 works for you.

 -- Keir



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

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