From: Keir Fraser Subject: Re: [PATCH] AMD IOMMU: Defer IO pagetable construction until device assignment Date: Wed, 02 Apr 2008 16:26:40 +0100 Message-ID: References: <1207149933.3980.53.camel@gran.amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1207149933.3980.53.camel@gran.amd.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: Wei Wang2 Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 2/4/08 16:25, "Wei Wang2" 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