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

[Xen-changelog] Only enable PGE in CR4 if the CPU supports the feature.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Only enable PGE in CR4 if the CPU supports the feature.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Tue, 28 Jun 2005 08:09:04 +0000
Cc: james@xxxxxxxxxxxxx
Delivery-date: Tue, 28 Jun 2005 09:01:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1765, 2005/06/28 09:09:04+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Only enable PGE in CR4 if the CPU supports the feature.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 setup.c     |    2 +-
 x86_32/mm.c |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      2005-06-28 05:03:00 -04:00
+++ b/xen/arch/x86/setup.c      2005-06-28 05:03:00 -04:00
@@ -87,7 +87,7 @@
 #if CONFIG_PAGING_LEVELS > 2
 unsigned long mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE | X86_CR4_PAE;
 #else
-unsigned long mmu_cr4_features = X86_CR4_PSE | X86_CR4_PGE;
+unsigned long mmu_cr4_features = X86_CR4_PSE;
 #endif
 EXPORT_SYMBOL(mmu_cr4_features);
 
diff -Nru a/xen/arch/x86/x86_32/mm.c b/xen/arch/x86/x86_32/mm.c
--- a/xen/arch/x86/x86_32/mm.c  2005-06-28 05:03:00 -04:00
+++ b/xen/arch/x86/x86_32/mm.c  2005-06-28 05:03:00 -04:00
@@ -80,6 +80,7 @@
     if ( cpu_has_pge )
     {
         /* Suitable Xen mapping can be GLOBAL. */
+        set_in_cr4(X86_CR4_PGE);
         PAGE_HYPERVISOR         |= _PAGE_GLOBAL;
         PAGE_HYPERVISOR_NOCACHE |= _PAGE_GLOBAL;
         /* Transform early mappings (e.g., the frametable). */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Only enable PGE in CR4 if the CPU supports the feature., BitKeeper Bot <=