KVM: arm64: Make BP hardening globals static instead
authorWill Deacon <will@kernel.org>
Fri, 13 Nov 2020 11:38:41 +0000 (11:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 16 Nov 2020 10:40:18 +0000 (10:40 +0000)
commit07cf8aa922db7747cd6e100d2e3f7ca839c7a419
tree59b8a202e9431e14950b1a57c06d90438f77afbb
parent042c76a9502bf281befc0ae2793ef1de55b65544
KVM: arm64: Make BP hardening globals static instead

Branch predictor hardening of the hyp vectors is partially driven by a
couple of global variables ('__kvm_bp_vect_base' and
'__kvm_harden_el2_vector_slot'). However, these are only used within a
single compilation unit, so internalise them there instead.

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-5-will@kernel.org
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/va_layout.c