]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/xen/enlighten.c
xen: mask unwanted pte bits in __supported_pte_mask
[linux-2.6-omap-h63xx.git] / arch / x86 / xen / enlighten.c
index 8e6152e6ed884cdf7bd6d90a326aaeb43940fd5c..73fb0c4c150aad00b25886a13bd8b6ed0ca79d8b 100644 (file)
@@ -1280,6 +1280,11 @@ asmlinkage void __init xen_start_kernel(void)
        if (xen_feature(XENFEAT_supervisor_mode_kernel))
                pv_info.kernel_rpl = 0;
 
+       /* Prevent unwanted bits from being set in PTEs. */
+       __supported_pte_mask &= ~_PAGE_GLOBAL;
+       if (!is_initial_xendomain())
+               __supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD);
+
        /* set the limit of our address space */
        xen_reserve_top();