diff options
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r-- | arch/x86/xen/enlighten.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c index fac5e4f9607c..6bf3a13e3e0f 100644 --- a/arch/x86/xen/enlighten.c +++ b/arch/x86/xen/enlighten.c | |||
@@ -1100,12 +1100,6 @@ static int xen_write_msr_safe(unsigned int msr, unsigned low, unsigned high) | |||
1100 | /* Fast syscall setup is all done in hypercalls, so | 1100 | /* Fast syscall setup is all done in hypercalls, so |
1101 | these are all ignored. Stub them out here to stop | 1101 | these are all ignored. Stub them out here to stop |
1102 | Xen console noise. */ | 1102 | Xen console noise. */ |
1103 | break; | ||
1104 | |||
1105 | case MSR_IA32_CR_PAT: | ||
1106 | if (smp_processor_id() == 0) | ||
1107 | xen_set_pat(((u64)high << 32) | low); | ||
1108 | break; | ||
1109 | 1103 | ||
1110 | default: | 1104 | default: |
1111 | ret = native_write_msr_safe(msr, low, high); | 1105 | ret = native_write_msr_safe(msr, low, high); |
@@ -1561,10 +1555,6 @@ asmlinkage __visible void __init xen_start_kernel(void) | |||
1561 | 1555 | ||
1562 | /* Prevent unwanted bits from being set in PTEs. */ | 1556 | /* Prevent unwanted bits from being set in PTEs. */ |
1563 | __supported_pte_mask &= ~_PAGE_GLOBAL; | 1557 | __supported_pte_mask &= ~_PAGE_GLOBAL; |
1564 | #if 0 | ||
1565 | if (!xen_initial_domain()) | ||
1566 | #endif | ||
1567 | __supported_pte_mask &= ~(_PAGE_PWT | _PAGE_PCD); | ||
1568 | 1558 | ||
1569 | /* | 1559 | /* |
1570 | * Prevent page tables from being allocated in highmem, even | 1560 | * Prevent page tables from being allocated in highmem, even |
@@ -1618,14 +1608,6 @@ asmlinkage __visible void __init xen_start_kernel(void) | |||
1618 | */ | 1608 | */ |
1619 | acpi_numa = -1; | 1609 | acpi_numa = -1; |
1620 | #endif | 1610 | #endif |
1621 | #ifdef CONFIG_X86_PAT | ||
1622 | /* | ||
1623 | * For right now disable the PAT. We should remove this once | ||
1624 | * git commit 8eaffa67b43e99ae581622c5133e20b0f48bcef1 | ||
1625 | * (xen/pat: Disable PAT support for now) is reverted. | ||
1626 | */ | ||
1627 | pat_enabled = 0; | ||
1628 | #endif | ||
1629 | /* Don't do the full vcpu_info placement stuff until we have a | 1611 | /* Don't do the full vcpu_info placement stuff until we have a |
1630 | possible map and a non-dummy shared_info. */ | 1612 | possible map and a non-dummy shared_info. */ |
1631 | per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0]; | 1613 | per_cpu(xen_vcpu, 0) = &HYPERVISOR_shared_info->vcpu_info[0]; |
@@ -1636,6 +1618,13 @@ asmlinkage __visible void __init xen_start_kernel(void) | |||
1636 | xen_raw_console_write("mapping kernel into physical memory\n"); | 1618 | xen_raw_console_write("mapping kernel into physical memory\n"); |
1637 | xen_setup_kernel_pagetable((pgd_t *)xen_start_info->pt_base, xen_start_info->nr_pages); | 1619 | xen_setup_kernel_pagetable((pgd_t *)xen_start_info->pt_base, xen_start_info->nr_pages); |
1638 | 1620 | ||
1621 | /* | ||
1622 | * Modify the cache mode translation tables to match Xen's PAT | ||
1623 | * configuration. | ||
1624 | */ | ||
1625 | |||
1626 | pat_init_cache_modes(); | ||
1627 | |||
1639 | /* keep using Xen gdt for now; no urgent need to change it */ | 1628 | /* keep using Xen gdt for now; no urgent need to change it */ |
1640 | 1629 | ||
1641 | #ifdef CONFIG_X86_32 | 1630 | #ifdef CONFIG_X86_32 |