xen: set up mmu_ops before trying to set any ptes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, October 29, 2009 - 3:59 pm

Gitweb:     http://git.kernel.org/linus/973df35ed9ff7806403e793a2ad7e9bd4c2fd2a9
Commit:     973df35ed9ff7806403e793a2ad7e9bd4c2fd2a9
Parent:     964fe080d94db82a3268443e9b9ece4c60246414
Author:     Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
AuthorDate: Tue Oct 27 16:54:19 2009 -0700
Committer:  Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
CommitDate: Tue Oct 27 16:54:19 2009 -0700

    xen: set up mmu_ops before trying to set any ptes
    
    xen_setup_stackprotector() ends up trying to set page protections,
    so we need to have vm_mmu_ops set up before trying to do so.
    Failing to do so causes an early boot crash.
    
    [ Impact: Fix early crash under Xen. ]
    
    Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
---
 arch/x86/xen/enlighten.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 3439616..23a4d80 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1075,6 +1075,8 @@ asmlinkage void __init xen_start_kernel(void)
 	 * Set up some pagetable state before starting to set any ptes.
 	 */
 
+	xen_init_mmu_ops();
+
 	/* Prevent unwanted bits from being set in PTEs. */
 	__supported_pte_mask &= ~_PAGE_GLOBAL;
 	if (!xen_initial_domain())
@@ -1099,7 +1101,6 @@ asmlinkage void __init xen_start_kernel(void)
 	 */
 	xen_setup_stackprotector();
 
-	xen_init_mmu_ops();
 	xen_init_irq_ops();
 	xen_init_cpuid_mask();
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
xen: set up mmu_ops before trying to set any ptes, Linux Kernel Mailing ..., (Thu Oct 29, 3:59 pm)