Makefile 1 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
3
4
5
#
# Makefile for Kernel-based Virtual Machine module, HYP part
#

6
ccflags-y += -fno-stack-protector -DDISABLE_BRANCH_PROFILING
7

8
9
KVM=../../../../virt/kvm

10
11
CFLAGS_ARMV7VE		   :=$(call cc-option, -march=armv7ve)

Vladimir Murzin's avatar
Vladimir Murzin committed
12
obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/vgic-v3-sr.o
13
obj-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/hyp/timer-sr.o
14

15
obj-$(CONFIG_KVM_ARM_HOST) += tlb.o
16
obj-$(CONFIG_KVM_ARM_HOST) += cp15-sr.o
Marc Zyngier's avatar
Marc Zyngier committed
17
obj-$(CONFIG_KVM_ARM_HOST) += vfp.o
18
obj-$(CONFIG_KVM_ARM_HOST) += banked-sr.o
19
20
CFLAGS_banked-sr.o	   += $(CFLAGS_ARMV7VE)

Marc Zyngier's avatar
Marc Zyngier committed
21
obj-$(CONFIG_KVM_ARM_HOST) += entry.o
22
obj-$(CONFIG_KVM_ARM_HOST) += hyp-entry.o
23
obj-$(CONFIG_KVM_ARM_HOST) += switch.o
24
CFLAGS_switch.o		   += $(CFLAGS_ARMV7VE)
25
obj-$(CONFIG_KVM_ARM_HOST) += s2-setup.o
Dmitry Vyukov's avatar
Dmitry Vyukov committed
26
27
28
29
30
31
32
33

# KVM code is run at a different exception code with a different map, so
# compiler instrumentation that inserts callbacks or checks into the code may
# cause crashes. Just disable it.
GCOV_PROFILE	:= n
KASAN_SANITIZE	:= n
UBSAN_SANITIZE	:= n
KCOV_INSTRUMENT	:= n