From: Keir Fraser Subject: Re: [PATCH] Remove physmap page upon granttab xfer Date: Wed, 28 May 2008 11:39:16 +0100 Message-ID: References: <20080528102821.GH29174%yamahata@valinux.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080528102821.GH29174%yamahata@valinux.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Isaku Yamahata , Espen Skoglund Cc: xen-devel@lists.xensource.com, xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 28/5/08 11:28, "Isaku Yamahata" wrote: > Although I know that grant table page transfer is obsoleted, > what is the expected exact semantics of GNTTABOP_transfer with > the p2m/m2p table? > > I suppose the right fix would be > - revert this patch and > - put the iommu opration of pv domain into MMU_MACHPHYS_UPDATE. After the grant transfer operation completes the page no longer belongs to the backend domain. Thus, for absolute safety and isolation, the page must be removed from the backend domain's IOMMU mappings before completion of the grant transfer operation. Actually we should be flushing host CPU TLBs too. -- Keir