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-changelog

[Xen-changelog] [xen-unstable] [HVM] fix system crash when vmx guest sta

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [HVM] fix system crash when vmx guest startx or restore
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 14 Jul 2006 17:40:48 +0000
Delivery-date: Fri, 14 Jul 2006 10:45:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [HVM] fix system crash when vmx guest startx or restore, Xen patchbot-unstable <=