1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for Kernel-based Virtual Machine module, HYP part
4#
5
6ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING
7
8KVM=../../../../virt/kvm
9
10CFLAGS_ARMV7VE		   :=$(call cc-option, -march=armv7ve)
11
12obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o
13obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o
14
15obj-$(CONFIG_KVM_ARM_HOST) += tlb.o
16obj-$(CONFIG_KVM_ARM_HOST) += cp15-sr.o
17obj-$(CONFIG_KVM_ARM_HOST) += vfp.o
18obj-$(CONFIG_KVM_ARM_HOST) += banked-sr.o
19CFLAGS_banked-sr.o	   += $(CFLAGS_ARMV7VE)
20
21obj-$(CONFIG_KVM_ARM_HOST) += entry.o
22obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o
23obj-$(CONFIG_KVM_ARM_HOST) += switch.o
24CFLAGS_switch.o		   += $(CFLAGS_ARMV7VE)
25obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o
26
27# KVM code is run at a different exception code with a different map, so
28# compiler instrumentation that inserts callbacks or checks into the code may
29# cause crashes. Just disable it.
30GCOV_PROFILE	:= n
31KASAN_SANITIZE	:= n
32UBSAN_SANITIZE	:= n
33KCOV_INSTRUMENT	:= n
34