Skip to content

Commit f9a026e

Browse files
David BrazdilMarc Zyngier
authored andcommitted
KVM: arm64: Lift instrumentation restrictions on VHE
With VHE and nVHE executable code completely separated, remove build config that disabled GCOV/KASAN/UBSAN/KCOV instrumentation for VHE as these now execute under the same memory mappings as the rest of the kernel. No violations are currently being reported by either KASAN or UBSAN. Signed-off-by: David Brazdil <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c50cb04 commit f9a026e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/arm64/kvm/hyp/vhe/Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,3 @@ ccflags-y := -D__KVM_VHE_HYPERVISOR__
99
obj-y := timer-sr.o sysreg-sr.o debug-sr.o switch.o tlb.o
1010
obj-y += ../vgic-v3-sr.o ../aarch32.o ../vgic-v2-cpuif-proxy.o ../entry.o \
1111
../fpsimd.o ../hyp-entry.o
12-
13-
# KVM code is run at a different exception code with a different map, so
14-
# compiler instrumentation that inserts callbacks or checks into the code may
15-
# cause crashes. Just disable it.
16-
GCOV_PROFILE := n
17-
KASAN_SANITIZE := n
18-
UBSAN_SANITIZE := n
19-
KCOV_INSTRUMENT := n

0 commit comments

Comments
 (0)