summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2018-03-14 13:28:50 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2018-03-19 13:05:49 +0000
commit4340ba80bd3a310d8eb9011df2e63c6371e28113 (patch)
treeed16dad493a415c7c040539e15f546e082ce5491 /arch/arm64/include
parent7e80f637fd8bcdd777d3841a43f76563ffd2985a (diff)
downloadop-kernel-dev-4340ba80bd3a310d8eb9011df2e63c6371e28113.zip
op-kernel-dev-4340ba80bd3a310d8eb9011df2e63c6371e28113.tar.gz
arm64: KVM: Move BP hardening vectors into .hyp.text section
There is no reason why the BP hardening vectors shouldn't be part of the HYP text at compile time, rather than being mapped at runtime. Also introduce a new config symbol that controls the compilation of bpi.S. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/include')
-rw-r--r--arch/arm64/include/asm/kvm_mmu.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm64/include/asm/kvm_mmu.h b/arch/arm64/include/asm/kvm_mmu.h
index 8cd37ea..65dc225 100644
--- a/arch/arm64/include/asm/kvm_mmu.h
+++ b/arch/arm64/include/asm/kvm_mmu.h
@@ -380,9 +380,7 @@ static inline void *kvm_get_hyp_vector(void)
static inline int kvm_map_vectors(void)
{
- return create_hyp_mappings(kvm_ksym_ref(__bp_harden_hyp_vecs_start),
- kvm_ksym_ref(__bp_harden_hyp_vecs_end),
- PAGE_HYP_EXEC);
+ return 0;
}
#else
OpenPOWER on IntegriCloud