x86/mm: Fix {pmd,pud}_{set,clear}_flags()
authorJan Beulich <[email protected]>
Mon, 19 Feb 2018 14:48:11 +0000 (07:48 -0700)
committerIngo Molnar <[email protected]>
Tue, 20 Feb 2018 08:33:39 +0000 (09:33 +0100)
commit842cef9113c2120f74f645111ded1e020193d84c
tree0a0f84ab1e1905f9b3e7149fb5f19c3ff3c28ede
parentced5d0bf603fa0baee8ea889e1d70971fd210894
x86/mm: Fix {pmd,pud}_{set,clear}_flags()

Just like pte_{set,clear}_flags() their PMD and PUD counterparts should
not do any address translation. This was outright wrong under Xen
(causing a dead boot with no useful output on "suitable" systems), and
produced needlessly more complicated code (even if just slightly) when
paravirt was enabled.

Signed-off-by: Jan Beulich <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Boris Ostrovsky <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/pgtable_types.h