]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
xen: mask out PWT too
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 30 Jan 2008 12:32:58 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:58 +0000 (13:32 +0100)
The hypervisor doesn't allow PCD or PWT to be set on guest ptes, so
make sure they're masked out.  Also, fix up some previous mispatching.

Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/xen/mmu.c

index 52f392893008aae5d801cff8f98878c14b0b755d..3e9e095c295ce8566c33688345f81a50f9e54ee9 100644 (file)
@@ -291,7 +291,7 @@ pte_t xen_make_pte(unsigned long pte)
        if (pte & _PAGE_PRESENT)
                pte = phys_to_machine(XPADDR(pte)).maddr;
 
-       pte &= ~_PAGE_PCD;
+       pte &= ~(_PAGE_PCD | _PAGE_PWT);
 
        return (pte_t){ pte };
 }