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

[Xen-devel] [PATCH] Remove physmap page upon granttab xfer

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Remove physmap page upon granttab xfer
From: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>
Date: Fri, 23 May 2008 13:30:16 +0100
Delivery-date: Fri, 23 May 2008 05:31:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
Mapping should be removed from current domain's p2m table when doing a
grant table transfer.

Signed-off-by: Espen Skoglund <espen.skoglund@xxxxxxxxxxxxx>


================================================================
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) )


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