Commit 31f4b46e authored by Ahmed S. Darwish's avatar Ahmed S. Darwish Committed by Thomas Gleixner

lguest: accept guest _PAGE_PWT page table entries

Beginning from commit 4138cc34, 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: default avatarAhmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 261f0ce5
...@@ -178,8 +178,8 @@ static void release_pte(pte_t pte) ...@@ -178,8 +178,8 @@ static void release_pte(pte_t pte)
static void check_gpte(struct lg_cpu *cpu, pte_t gpte) static void check_gpte(struct lg_cpu *cpu, pte_t gpte)
{ {
if ((pte_flags(gpte) & (_PAGE_PWT|_PAGE_PSE)) if ((pte_flags(gpte) & _PAGE_PSE) ||
|| pte_pfn(gpte) >= cpu->lg->pfn_limit) pte_pfn(gpte) >= cpu->lg->pfn_limit)
kill_guest(cpu, "bad page table entry"); kill_guest(cpu, "bad page table entry");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment