aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 115016347806..78a881b7fc41 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -1102,12 +1102,6 @@ static int xen_write_msr_safe(unsigned int msr, unsigned low, unsigned high)
1102 /* Fast syscall setup is all done in hypercalls, so 1102 /* Fast syscall setup is all done in hypercalls, so
1103 these are all ignored. Stub them out here to stop 1103 these are all ignored. Stub them out here to stop
1104 Xen console noise. */ 1104 Xen console noise. */
1105 break;
1106
1107 case MSR_IA32_CR_PAT:
1108 if (smp_processor_id() == 0)
1109 xen_set_pat(((u64)high << 32) | low);
1110 break;
1111 1105
1112 default: 1106 default:
1113 ret = native_write_msr_safe(msr, low, high); 1107 ret = native_write_msr_safe(msr, low, high);
@@ -1581,10 +1575,6 @@ asmlinkage __visible void __init xen_start_kernel(void)
1581 1575
1582 /* Prevent unwanted bits from being set in PTEs. */ 1576 /* Prevent unwanted bits from being set in PTEs. */
1583 __supported_pte_mask &= ~_PAGE_GLOBAL; 1577 __supported_pte_mask &= ~_PAGE_GLOBAL;
1584#if 0
1585 if (!xen_initial_domain())
1586#endif
1587 __supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD);
1588 1578
1589 /* 1579 /*
1590 * Prevent page tables from being allocated in highmem, even 1580 * Prevent page tables from being allocated in highmem, even
@@ -1638,14 +1628,6 @@ asmlinkage __visible void __init xen_start_kernel(void)
1638 */ 1628 */
1639 acpi_numa = -1; 1629 acpi_numa = -1;
1640#endif 1630#endif
1641#ifdef CONFIG_X86_PAT
1642 /*
1643 * For right now disable the PAT. We should remove this once
1644 * git commit 8eaffa67b43e99ae581622c5133e20b0f48bcef1
1645 * (xen/pat: Disable PAT support for now) is reverted.
1646 */
1647 pat_enabled = 0;
1648#endif
1649 /* Don't do the full vcpu_info placement stuff until we have a 1631 /* Don't do the full vcpu_info placement stuff until we have a
1650 possible map and a non-dummy shared_info. */ 1632 possible map and a non-dummy shared_info. */
1651 per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0]; 1633 per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0];
@@ -1656,6 +1638,13 @@ asmlinkage __visible void __init xen_start_kernel(void)
1656 xen_raw_console_write("mapping kernel into physical memory\n"); 1638 xen_raw_console_write("mapping kernel into physical memory\n");
1657 xen_setup_kernel_pagetable((pgd_t *)xen_start_info->pt_base, xen_start_info->nr_pages); 1639 xen_setup_kernel_pagetable((pgd_t *)xen_start_info->pt_base, xen_start_info->nr_pages);
1658 1640
1641 /*
1642 * Modify the cache mode translation tables to match Xen's PAT
1643 * configuration.
1644 */
1645
1646 pat_init_cache_modes();
1647
1659 /* keep using Xen gdt for now; no urgent need to change it */ 1648 /* keep using Xen gdt for now; no urgent need to change it */
1660 1649
1661#ifdef CONFIG_X86_32 1650#ifdef CONFIG_X86_32