summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm
diff options
context:
space:
mode:
authorMarc Zyngier2018-03-14 14:28:50 +0100
committerMarc Zyngier2018-03-19 14:05:49 +0100
commit4340ba80bd3a310d8eb9011df2e63c6371e28113 (patch)
treeed16dad493a415c7c040539e15f546e082ce5491 /arch/arm64/kvm
parentarm64: KVM: Move stashing of x0/x1 into the vector code itself (diff)
downloadkernel-qcow2-linux-4340ba80bd3a310d8eb9011df2e63c6371e28113.tar.gz
kernel-qcow2-linux-4340ba80bd3a310d8eb9011df2e63c6371e28113.tar.xz
kernel-qcow2-linux-4340ba80bd3a310d8eb9011df2e63c6371e28113.zip
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/kvm')
-rw-r--r--arch/arm64/kvm/Kconfig3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig
index 2257dfcc44cc..bd8cc03d7522 100644
--- a/arch/arm64/kvm/Kconfig
+++ b/arch/arm64/kvm/Kconfig
@@ -57,6 +57,9 @@ config KVM_ARM_PMU
Adds support for a virtual Performance Monitoring Unit (PMU) in
virtual machines.
+config KVM_INDIRECT_VECTORS
+ def_bool KVM && HARDEN_BRANCH_PREDICTOR
+
source drivers/vhost/Kconfig
endif # VIRTUALIZATION