mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
xen: mask out PWT too
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>
This commit is contained in:
parent
4891645e76
commit
015c8dd0cb
1 changed files with 1 additions and 1 deletions
|
@ -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 };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue