Small fix for HVM guest on PAE >4G host
PATCH 1/1 Small fix for HVM guest on PAE >4G host
This patch fixes problems when creating HVM guest on PAE host with >4G physical memory.
Signed-off-by Yunhong Jiang [email protected]
Signed-off-by Jun Nakajima [email protected]
Thanks
Yunhong Jiang
xen/arch/x86/shadow_public.c +2 -1
@@ -413,7 +413,8 @@ static void alloc_monitor_pagetable(stru (l3e_get_flags (mpl3e[i]) & _PAGE_PRESENT) ?l2e_from_pfn (l3e_get_pfn (mpl3e[i]), __PAGE_HYPERVISOR) :l2e_empty (); - mpl2e[l2_table_offset (RO_MPT_VIRT_START )] =l2e_empty (); +for ( i =0 ; i < (MACHPHYS_MBYTES >> (L2_PAGETABLE_SHIFT -20 )); i++ ) + mpl2e[l2_table_offset (RO_MPT_VIRT_START ) + i] =l2e_empty (); v->arch.monitor_table =mk_pagetable (m3mfn <<PAGE_SHIFT );/* < 4GB */ v->arch.monitor_vtable = (l2_pgentry_t *) mpl3e;
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel