diff options
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r-- | arch/x86/xen/mmu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 7c9935858f92..f0078d9a5b78 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -343,10 +343,8 @@ pgdval_t xen_pgd_val(pgd_t pgd) | |||
343 | 343 | ||
344 | pte_t xen_make_pte(pteval_t pte) | 344 | pte_t xen_make_pte(pteval_t pte) |
345 | { | 345 | { |
346 | if (pte & _PAGE_PRESENT) { | 346 | if (pte & _PAGE_PRESENT) |
347 | pte = phys_to_machine(XPADDR(pte)).maddr; | 347 | pte = phys_to_machine(XPADDR(pte)).maddr; |
348 | pte &= ~(_PAGE_PCD | _PAGE_PWT); | ||
349 | } | ||
350 | 348 | ||
351 | return (pte_t){ .pte = pte }; | 349 | return (pte_t){ .pte = pte }; |
352 | } | 350 | } |