arm64: KVM: Drop hyp_alternate_select for checking for ARM64_WORKAROUND_834220
authorMarc Zyngier <maz@kernel.org>
Sun, 1 Sep 2019 21:12:35 +0000 (22:12 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 9 Sep 2019 17:16:32 +0000 (18:16 +0100)
commitb6749e20d5710c955fc6d4322f8fd98c915b2573
tree516de9ee7c60ed7456b00dbb64e823d47f8f9bd5
parent92f35b751c71d14250a401246f2c792e3aa5b386
arm64: KVM: Drop hyp_alternate_select for checking for ARM64_WORKAROUND_834220

There is no reason for using hyp_alternate_select when checking
for ARM64_WORKAROUND_834220, as each of the capabilities is
also backed by a static key. Just replace the KVM-specific
construct with cpus_have_const_cap(ARM64_WORKAROUND_834220).

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
arch/arm64/kvm/hyp/switch.c