]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82cdf17a9060622aaa464b11c1a76321379b191a
treeec6cee72c28c9ac0d79e99c13b3d14a98b377d66
parent52303c159aaf2219cfa60dd0f7bf7c06a1d70995
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