diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2008-06-16 18:01:53 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-06-20 08:56:36 -0400 |
commit | 05345b0f006ac226d0d25d48fcb2d792ac44a071 (patch) | |
tree | dfb335dc2dd441de5772c47186a5403e64909b66 /arch/x86/xen/mmu.c | |
parent | 46539383791a0e59a4af7412056dfbfc5240af0a (diff) |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 3525ef523a74..3f2a67fe6ad6 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c | |||
@@ -199,10 +199,8 @@ pgdval_t xen_pgd_val(pgd_t pgd) | |||
199 | 199 | ||
200 | pte_t xen_make_pte(pteval_t pte) | 200 | pte_t xen_make_pte(pteval_t pte) |
201 | { | 201 | { |
202 | if (pte & _PAGE_PRESENT) { | 202 | if (pte & _PAGE_PRESENT) |
203 | pte = phys_to_machine(XPADDR(pte)).maddr; | 203 | pte = phys_to_machine(XPADDR(pte)).maddr; |
204 | pte &= ~(_PAGE_PCD | _PAGE_PWT); | ||
205 | } | ||
206 | 204 | ||
207 | return (pte_t){ .pte = pte }; | 205 | return (pte_t){ .pte = pte }; |
208 | } | 206 | } |