[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] [PATCH] fix system crash when vmx guest startx or restore
[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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |