summaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/mmu.c
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2008-06-16 15:01:53 -0700
committerIngo Molnar <mingo@elte.hu>2008-06-20 14:55:11 +0200
commiteb179e443deb0a5c81a62b4c157124a4b7ff1813 (patch)
tree352f02e0c9802b1025a7bf165e97aee88979387d /arch/x86/xen/mmu.c
parent6673cf63e5d973db5145d1f48b354efcb9fe2a13 (diff)
downloadop-kernel-dev-eb179e443deb0a5c81a62b4c157124a4b7ff1813.zip
op-kernel-dev-eb179e443deb0a5c81a62b4c157124a4b7ff1813.tar.gz
xen: mask unwanted pte bits in __supported_pte_mask
[ Stable: this isn't a bugfix in itself, but it's a pre-requiste for "xen: don't drop NX bit" ] Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Stable Kernel <stable@kernel.org> Cc: the arch/x86 maintainers <x86@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/mmu.c')
-rw-r--r--arch/x86/xen/mmu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
index 7c99358..f0078d9 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)
pte_t xen_make_pte(pteval_t pte)
{
- if (pte & _PAGE_PRESENT) {
+ if (pte & _PAGE_PRESENT)
pte = phys_to_machine(XPADDR(pte)).maddr;
- pte &= ~(_PAGE_PCD | _PAGE_PWT);
- }
return (pte_t){ .pte = pte };
}
OpenPOWER on IntegriCloud