arm64: KVM: Move BP hardening vectors into .hyp.text section
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 14 Mar 2018 13:28:50 +0000 (13:28 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 13:05:49 +0000 (13:05 +0000)
commit4340ba80bd3a310d8eb9011df2e63c6371e28113
treeed16dad493a415c7c040539e15f546e082ce5491
parent7e80f637fd8bcdd777d3841a43f76563ffd2985a
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>
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kernel/Makefile
arch/arm64/kernel/bpi.S
arch/arm64/kvm/Kconfig