summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2020-12-02 05:38:54 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2020-12-03 15:01:27 +0100
commit61130e203dca3ba1f0c510eb12f7a4294e31a834 (patch)
treea96718f275df5029d775f4c7bea540ef8e879d30 /arch/powerpc/include
parentpowerpc/book3s64/hash/kuep: Enable KUEP on hash (diff)
downloadlinux-61130e203dca3ba1f0c510eb12f7a4294e31a834.tar.xz
linux-61130e203dca3ba1f0c510eb12f7a4294e31a834.zip
powerpc/book3s64/kup: Check max key supported before enabling kup
Don't enable KUEP/KUAP if we support less than or equal to 3 keys. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201202043854.76406-1-aneesh.kumar@linux.ibm.com
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/kup.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/kup.h b/arch/powerpc/include/asm/kup.h
index 952be0414f43..f8ec679bd2de 100644
--- a/arch/powerpc/include/asm/kup.h
+++ b/arch/powerpc/include/asm/kup.h
@@ -44,6 +44,9 @@
#else /* !__ASSEMBLY__ */
+extern bool disable_kuep;
+extern bool disable_kuap;
+
#include <linux/pgtable.h>
void setup_kup(void);