KVM: arm64: Convert ARCH_WORKAROUND_2 to arm64_get_spectre_v4_state()
authorMarc Zyngier <maz@kernel.org>
Fri, 18 Sep 2020 13:08:54 +0000 (14:08 +0100)
committerWill Deacon <will@kernel.org>
Tue, 29 Sep 2020 15:08:17 +0000 (16:08 +0100)
commitd63d975a71b332df36cc802e6e77a462af6b9fef
tree6d9260546f2c21449a646437c281c74001765b15
parent7311467702710cc30ac4e3a6c6670a766e7667f9
KVM: arm64: Convert ARCH_WORKAROUND_2 to arm64_get_spectre_v4_state()

Convert the KVM WA2 code to using the Spectre infrastructure,
making the code much more readable. It also allows us to
take SSBS into account for the mitigation.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kvm/arm.c
arch/arm64/kvm/hypercalls.c
arch/arm64/kvm/psci.c