]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05141e02d7ff8ea9c663e79fcfe18abbaee07748
treed8855634c7af41322616305cbe0a31484d06255b
parentef5fb1bca5612f0e8c854677d5f853bd20febebc
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