projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4891645
)
xen: mask out PWT too
author
Jeremy Fitzhardinge
<jeremy@goop.org>
Wed, 30 Jan 2008 12:32:58 +0000
(13:32 +0100)
committer
Ingo 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/xen/mmu.c
b/arch/x86/xen/mmu.c
index 52f392893008aae5d801cff8f98878c14b0b755d..3e9e095c295ce8566c33688345f81a50f9e54ee9 100644
(file)
--- a/
arch/x86/xen/mmu.c
+++ b/
arch/x86/xen/mmu.c
@@
-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 };
}