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

[Xen-devel] [PATCH][VT] Remove L2 pin for 1:1 page table on control pane

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][VT] Remove L2 pin for 1:1 page table on control panel
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Mon, 12 Sep 2005 18:16:12 +0800
Delivery-date: Mon, 12 Sep 2005 10:14:02 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcW3gwBbQKqMe5YiSU6Dt7xZMXsVyw==
Thread-topic: [PATCH][VT] 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

Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>

diff -r 51fa7e0bd968 -r b187d5555866 tools/libxc/xc_vmx_build.c
--- a/tools/libxc/xc_vmx_build.c        Sat Sep 10 03:34:52 2005
+++ b/tools/libxc/xc_vmx_build.c        Mon Sep 12 05:09:23 2005
@@ -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) )
diff -r 51fa7e0bd968 -r b187d5555866 xen/arch/x86/domain.c
--- a/xen/arch/x86/domain.c     Sat Sep 10 03:34:52 2005
+++ b/xen/arch/x86/domain.c     Mon Sep 12 05:09:23 2005
@@ -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;
diff -r 51fa7e0bd968 -r b187d5555866 xen/arch/x86/vmx.c
--- a/xen/arch/x86/vmx.c        Sat Sep 10 03:34:52 2005
+++ b/xen/arch/x86/vmx.c        Mon Sep 12 05:09:23 2005
@@ -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.

Attachment: linear.diff
Description: linear.diff

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][VT] Remove L2 pin for 1:1 page table on control panel, Jiang, Yunhong <=