lguest: accept guest _PAGE_PWT page table entries

Beginning from commit 4138cc3418f5, ioremap_nocache() sets the _PAGE_PWT
flag.

Lguest doesn't accept a guest pte with a _PWT flag and reports a "bad
page table entry" in that case.

Accept guest _PAGE_PWT page table entries.

Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by Ahmed S. Darwish and committed by Thomas Gleixner 31f4b46e 261f0ce5

+2 -2
+2 -2
drivers/lguest/page_tables.c
··· 178 178 179 179 static void check_gpte(struct lg_cpu *cpu, pte_t gpte) 180 180 { 181 - if ((pte_flags(gpte) & (_PAGE_PWT|_PAGE_PSE)) 182 - || pte_pfn(gpte) >= cpu->lg->pfn_limit) 181 + if ((pte_flags(gpte) & _PAGE_PSE) || 182 + pte_pfn(gpte) >= cpu->lg->pfn_limit) 183 183 kill_guest(cpu, "bad page table entry"); 184 184 } 185 185