From: Espen Skoglund Subject: [PATCH] Remove physmap page upon granttab xfer Date: Fri, 23 May 2008 13:30:16 +0100 Message-ID: <18486.47320.917421.120949@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Mapping should be removed from current domain's p2m table when doing a grant table transfer. Signed-off-by: Espen Skoglund ================================================================ diff -r 2e6a51378451 xen/common/grant_table.c --- a/xen/common/grant_table.c Thu May 22 15:11:06 2008 +0100 +++ b/xen/common/grant_table.c Fri May 23 13:23:56 2008 +0100 @@ -1073,6 +1073,8 @@ gop.status = GNTST_bad_page; goto copyback; } + + guest_physmap_remove_page(d, gop.mfn, mfn, 0); /* Find the target domain. */ if ( unlikely((e = rcu_lock_domain_by_id(gop.domid)) == NULL) )