powerpc/features: Add capability to update mmu features later
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 11 Jul 2023 15:59:16 +0000 (17:59 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 2 Aug 2023 12:22:17 +0000 (22:22 +1000)
commit6b289911c80d45fd8da3d24ea14706361381b78d
tree4330e49e89da137fadd76346ba80bad19e3e5c0f
parent38bb171b958480b484e8e980be76c7d3656881ea
powerpc/features: Add capability to update mmu features later

On powerpc32, features fixup is performed very early and that's too
early to read the cmdline and take into account 'nosmap' parameter.

On the other hand, no userspace access is performed that early and
KUAP feature fixup can be performed later.

Add a function to update mmu features. The function is passed a
mask with the features that can be updated.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/31b27ee2c9d338f4f82cd8cd69d6bff979495290.1689091022.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/feature-fixups.h
arch/powerpc/lib/feature-fixups.c