[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Make sure log-dirty is turned off before trying to dismantle it



# HG changeset patch
# User George Dunlap <george.dunlap@xxxxxxxxxxxxx>
# Date 1331198005 0
# Node ID 42afd4d1669b6cdd5635ac0bf2d87f8f3917309b
# Parent  12c795ed5bec1f5f1c288b5326b9ab991b4f333c
x86: Make sure log-dirty is turned off before trying to dismantle it

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 12c795ed5bec -r 42afd4d1669b xen/arch/x86/mm/paging.c
--- a/xen/arch/x86/mm/paging.c  Thu Mar 08 09:10:32 2012 +0000
+++ b/xen/arch/x86/mm/paging.c  Thu Mar 08 09:13:25 2012 +0000
@@ -722,6 +722,10 @@
 /* Call when destroying a domain */
 void paging_teardown(struct domain *d)
 {
+    /* Make sure log-dirty is turned off before trying to dismantle it. 
+     * Needs to be done here becuse it's covered by the hap/shadow lock */
+    d->arch.paging.log_dirty.disable_log_dirty(d);
+
     if ( hap_enabled(d) )
         hap_teardown(d);
     else

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.