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
14obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/aarch32.o
15
16obj-$(CONFIG_KVM_ARM_HOST) += tlb.o
17obj-$(CONFIG_KVM_ARM_HOST) += cp15-sr.o
18obj-$(CONFIG_KVM_ARM_HOST) += vfp.o
19obj-$(CONFIG_KVM_ARM_HOST) += banked-sr.o
20CFLAGS_banked-sr.o	   += $(CFLAGS_ARMV7VE)
21
22obj-$(CONFIG_KVM_ARM_HOST) += entry.o
23obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o
24obj-$(CONFIG_KVM_ARM_HOST) += switch.o
25CFLAGS_switch.o		   += $(CFLAGS_ARMV7VE)
26obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o
27
28# KVM code is run at a different exception code with a different map, so
29# compiler instrumentation that inserts callbacks or checks into the code may
30# cause crashes. Just disable it.
31GCOV_PROFILE	:= n
32KASAN_SANITIZE	:= n
33UBSAN_SANITIZE	:= n
34KCOV_INSTRUMENT	:= n
35