Remove L2 pin for 1:1 page table on control panel
PATCH 1/1 Remove L2 pin for 1:1 page table on control panel
This patch remove the L2 pin for 1:1 page table on control panel. L2 pin for 1:1 page table on control panel cause entries for top 64M address changed by alloc_l2_table().
Thanks
Yunhong Jiang
tools/libxc/xc_vmx_build.c +0 -2
@@ -613,14 +613,6 @@ start_info->store_mfn = *store_mfn; start_info->store_evtchn = store_evtchn;munmap (start_info,PAGE_SIZE ); -/* -* Pin down l2tab addr as page dir page - causes hypervisor to
provide
- * correct protection for the page
- */
-#ifdef __i386__
- if ( pin_table(xc_handle, MMUEXT_PIN_L2_TABLE, l2tab>>PAGE_SHIFT,
dom) )
- goto error_out;
-#endif
/* Send the page update requests down to the hypervisor. */ if ( xc_finish_mmu_updates(xc_handle, mmu) )
xen/arch/x86/domain.c +0 -2
@@ -463,9 +463,7 @@ }else { -#ifdef __x86_64__if ( !(c->flags &VGCF_VMX_GUEST ) ) -#endif if (
!get_page_and_type(&frame_table[phys_basetab>>PAGE_SHIFT], d,
PGT_base_page_table) )
return -EINVAL;xen/arch/x86/vmx.c +0 -5
@@ -1077,11 +1077,6 @@VMX_DBG_LOG (DBG_LEVEL_1 ,"enable PAE on cr4\n" ); __vmwrite(GUEST_CR4, crn | X86_CR4_PAE); } -#elif defined( __i386__) -unsigned long old_base_mfn; - old_base_mfn =pagetable_get_pfn (d->arch.guest_table); -if (old_base_mfn) -put_page (pfn_to_page (old_base_mfn));#endif /* * Now arch.guest_table points to machine physical.
# HG changeset patch
# User [email protected]
# Node ID b187d555586684eb9e878e5d571c926bc4a11baa # Parent 51fa7e0bd968866637da8dd5a203c18f7a9d6cb7 Remove L2 pin for 1:1 page table on control panel
tools/libxc/xc_vmx_build.c +0 -8
@@ -613,14 +613,6 @@ start_info->store_mfn = *store_mfn; start_info->store_evtchn = store_evtchn;munmap (start_info,PAGE_SIZE ); -/* -* Pin down l2tab addr as page dir page - causes hypervisor to provide -* correct protection for the page -*/ -#ifdef __i386__ -if (pin_table (xc_handle,MMUEXT_PIN_L2_TABLE , l2tab>>PAGE_SHIFT , dom) ) - goto error_out; -#endif /* Send the page update requests down to the hypervisor. */ if (xc_finish_mmu_updates (xc_handle, mmu) )
xen/arch/x86/domain.c +0 -2
@@ -463,9 +463,7 @@ }else { -#ifdef __x86_64__if ( !(c->flags &VGCF_VMX_GUEST ) ) -#endif if ( !get_page_and_type (&frame_table[phys_basetab>>PAGE_SHIFT ], d, PGT_base_page_table) )return -EINVAL ;
xen/arch/x86/vmx.c +0 -5
@@ -1077,11 +1077,6 @@VMX_DBG_LOG (DBG_LEVEL_1 ,"enable PAE on cr4\n" ); __vmwrite(GUEST_CR4, crn | X86_CR4_PAE); } -#elif defined( __i386__) -unsigned long old_base_mfn; - old_base_mfn =pagetable_get_pfn (d->arch.guest_table); -if (old_base_mfn) -put_page (pfn_to_page (old_base_mfn));#endif /* * Now arch.guest_table points to machine physical.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel