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] [PATCH] fix system crash when vmx guest startx or re

To: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] [PATCH] fix system crash when vmx guest startx or restore
From: "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Date: Fri, 14 Jul 2006 19:37:05 +0800
Bcc: helix-vmm@xxxxxxxxx
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 14 Jul 2006 04:41:23 -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
User-agent: Mutt/1.5.11
[PATCH] 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>

diff -r f692a0a476c5 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Thu Jul 13 15:33:08 2006 +0100
+++ b/xen/arch/x86/mm.c Fri Jul 14 17:45:28 2006 +0800
@@ -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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] [PATCH] fix system crash when vmx guest startx or restore, Zhai, Edwin <=