diff options
author | Marc Zyngier <maz@kernel.org> | 2021-02-08 09:57:31 +0000 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-02-09 13:50:57 +0000 |
commit | f8da5752fd1b25f1ecf78a79013e2dfd2b860589 (patch) | |
tree | 665b806bb277a0a7382c655b52587f3c4081d01d /arch/arm64/include | |
parent | 7f6240858cf3abb75237c9ba63ec70d232573ae8 (diff) | |
download | lwn-f8da5752fd1b25f1ecf78a79013e2dfd2b860589.tar.gz lwn-f8da5752fd1b25f1ecf78a79013e2dfd2b860589.zip |
arm64: cpufeatures: Allow disabling of Pointer Auth from the command-line
In order to be able to disable Pointer Authentication at runtime,
whether it is for testing purposes, or to work around HW issues,
let's add support for overriding the ID_AA64ISAR1_EL1.{GPI,GPA,API,APA}
fields.
This is further mapped on the arm64.nopauth command-line alias.
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: David Brazdil <dbrazdil@google.com>
Tested-by: Srinivas Ramana <sramana@codeaurora.org>
Link: https://lore.kernel.org/r/20210208095732.3267263-23-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r-- | arch/arm64/include/asm/cpufeature.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h index 30917b9a760b..61177bac49fa 100644 --- a/arch/arm64/include/asm/cpufeature.h +++ b/arch/arm64/include/asm/cpufeature.h @@ -820,6 +820,7 @@ static inline unsigned int get_vmid_bits(u64 mmfr1) extern struct arm64_ftr_override id_aa64mmfr1_override; extern struct arm64_ftr_override id_aa64pfr1_override; +extern struct arm64_ftr_override id_aa64isar1_override; u32 get_kvm_ipa_limit(void); void dump_cpu_features(void); |