diff options
author | Marc Zyngier <maz@kernel.org> | 2020-11-26 18:25:30 +0100 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-11-28 13:02:44 +0100 |
commit | 7f43c2014fa03bb8718569ae628acf2089683bff (patch) | |
tree | ec6cee72c28c9ac0d79e99c13b3d14a98b377d66 /arch/arm64/include/asm/spectre.h | |
parent | Linux 5.10-rc4 (diff) | |
download | linux-7f43c2014fa03bb8718569ae628acf2089683bff.tar.xz linux-7f43c2014fa03bb8718569ae628acf2089683bff.zip |
arm64: Make the Meltdown mitigation state available
Our Meltdown mitigation state isn't exposed outside of cpufeature.c,
contrary to the rest of the Spectre mitigation state. As we are going
to use it in KVM, expose a arm64_get_meltdown_state() helper which
returns the same possible values as arm64_get_spectre_v?_state().
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/spectre.h')
-rw-r--r-- | arch/arm64/include/asm/spectre.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/spectre.h b/arch/arm64/include/asm/spectre.h index fcdfbce302bd..52e788981f4a 100644 --- a/arch/arm64/include/asm/spectre.h +++ b/arch/arm64/include/asm/spectre.h @@ -29,4 +29,6 @@ bool has_spectre_v4(const struct arm64_cpu_capabilities *cap, int scope); void spectre_v4_enable_mitigation(const struct arm64_cpu_capabilities *__unused); void spectre_v4_enable_task_mitigation(struct task_struct *tsk); +enum mitigation_state arm64_get_meltdown_state(void); + #endif /* __ASM_SPECTRE_H */ |