arm64: Make the Meltdown mitigation state available
authorMarc Zyngier <maz@kernel.org>
Thu, 26 Nov 2020 17:25:30 +0000 (17:25 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 28 Nov 2020 12:02:44 +0000 (12:02 +0000)
commit7f43c2014fa03bb8718569ae628acf2089683bff
treeec6cee72c28c9ac0d79e99c13b3d14a98b377d66
parent09162bc32c880a791c6c0668ce0745cf7958f576
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>
arch/arm64/include/asm/spectre.h
arch/arm64/kernel/cpufeature.c