KVM: arm64: Tidy up kvm_map_vector()
authorWill Deacon <will@kernel.org>
Fri, 13 Nov 2020 11:38:39 +0000 (11:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 16 Nov 2020 10:40:17 +0000 (10:40 +0000)
commitde5bcdb48498abeb019ae075d139850c52661627
tree22f9171a9432d59c28e2f61ea0be2d3df2d0fb5e
parent8934c8454064757efd8d3fb0a729db7eb2d0e5f5
KVM: arm64: Tidy up kvm_map_vector()

The bulk of the work in kvm_map_vector() is conditional on the
ARM64_HARDEN_EL2_VECTORS capability, so return early if that is not set
and make the code a bit easier to read.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20201113113847.21619-3-will@kernel.org
arch/arm64/kvm/arm.c