KVM: arm64: Simplify install_bp_hardening_cb()
authorWill Deacon <will@kernel.org>
Tue, 15 Sep 2020 21:42:07 +0000 (22:42 +0100)
committerWill Deacon <will@kernel.org>
Tue, 29 Sep 2020 15:08:15 +0000 (16:08 +0100)
commitb181048f414668933c524fe077b9aa6e8e9a42b4
treed8855634c7af41322616305cbe0a31484d06255b
parent5359a87d5bdacb0c27f282f40ccbd80ce8f9702a
KVM: arm64: Simplify install_bp_hardening_cb()

Use is_hyp_mode_available() to detect whether or not we need to patch
the KVM vectors for branch hardening, which avoids the need to take the
vector pointers as parameters.

Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/cpu_errata.c