fix system crash when vmx guest startx or restore
PATCH 1/1 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 <[email protected]>
Signed-off-by Xiaohui Xin <[email protected]>
xen/arch/x86/mm.c +4 -0
@@ -1008,6 +1008,10 @@ static int alloc_l3_table(struct page_inl3_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