aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/hyp/nvhe/Makefile
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2022-10-04 16:42:16 +0100
committerMarc Zyngier <maz@kernel.org>2022-10-09 03:15:55 +0100
commit837d632a383f13df7a67207a196d6eb4aeb4adca (patch)
tree2db823687ee39f2ad9e2492d65bbe8e00a6833b9 /arch/arm64/kvm/hyp/nvhe/Makefile
parentKVM: arm64: Limit stage2_apply_range() batch size to largest block (diff)
downloadlinux-dev-837d632a383f13df7a67207a196d6eb4aeb4adca.tar.xz
linux-dev-837d632a383f13df7a67207a196d6eb4aeb4adca.zip
KVM: arm64: Enable stack protection and branch profiling for VHE
For historical reasons, the VHE code inherited the build configuration from nVHE. Now those two parts have their own folder and makefile, we can enable stack protection and branch profiling for VHE. Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Reviewed-by: Quentin Perret <qperret@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221004154216.2833636-1-vdonnefort@google.com
Diffstat (limited to '')
-rw-r--r--arch/arm64/kvm/hyp/nvhe/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/Makefile b/arch/arm64/kvm/hyp/nvhe/Makefile
index b5c5119c7396..48f6ae7cc6e6 100644
--- a/arch/arm64/kvm/hyp/nvhe/Makefile
+++ b/arch/arm64/kvm/hyp/nvhe/Makefile
@@ -10,6 +10,9 @@ asflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS
# will explode instantly (Words of Marc Zyngier). So introduce a generic flag
# __DISABLE_TRACE_MMIO__ to disable MMIO tracing for nVHE KVM.
ccflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS -D__DISABLE_TRACE_MMIO__
+ccflags-y += -fno-stack-protector \
+ -DDISABLE_BRANCH_PROFILING \
+ $(DISABLE_STACKLEAK_PLUGIN)
hostprogs := gen-hyprel
HOST_EXTRACFLAGS += -I$(objtree)/include