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

[Xen-changelog] [xen-unstable] [HVM] fix system crash when vmx guest startx or restore



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 32dccb9817571f700e27c89b9b8abc6384c72d46
# Parent  3fa8b914e2b50789262934bcfb313c95df9c3c31
[HVM] fix system crash when vmx guest startx or restore
Add this safety check like alloc_l4_table
Signed-off-by: Edwin Zhai <edwin.zhai@xxxxxxxxx>
Signed-off-by: Xiaohui Xin <xiaohui.xin@xxxxxxxxx>
---
 xen/arch/x86/mm.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -r 3fa8b914e2b5 -r 32dccb981757 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Fri Jul 14 13:59:15 2006 +0100
+++ b/xen/arch/x86/mm.c Fri Jul 14 13:59:53 2006 +0100
@@ -1008,6 +1008,10 @@ static int alloc_l3_table(struct page_in
     l3_pgentry_t  *pl3e;
     int            i;
 
+    /* See the code in shadow_promote() to understand why this is here. */
+    if ( (PGT_base_page_table == PGT_l3_page_table) &&
+         shadow_mode_refcounts(d) )
+        return 1;
     ASSERT(!shadow_mode_refcounts(d));
 
 #ifdef CONFIG_X86_PAE

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
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®.