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] [PATCH] AMD IOMMU: Defer IO pagetable construction until

To: Wei Wang2 <wei.wang2@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] AMD IOMMU: Defer IO pagetable construction until device assignment
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Wed, 02 Apr 2008 16:26:40 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Apr 2008 08:28:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1207149933.3980.53.camel@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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AciU1fKmMQDs3wDJEd2zswAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH] AMD IOMMU: Defer IO pagetable construction until device assignment
User-agent: Microsoft-Entourage/11.4.0.080122


On 2/4/08 16:25, "Wei Wang2" <wei.wang2@xxxxxxx> wrote:

>> I think you should leave p2m.c as it is, and then synchronise on creation of
>> the iommu tables from within amd_iommu_map_page(). You already have a
>> mapping_lock in there which might do the trick.
> I will update it. Maybe I need a new flag to indicate that I/O page tables has
> been synchronised..

Set and checked under the mapping lock. Yes, that would indeed work.

 -- Keir



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