Skip to content

Commit 451f2f1

Browse files
Sai Prakash Ranjanarndb
authored andcommitted
KVM: arm64: Add a flag to disable MMIO trace for nVHE KVM
Add a generic flag (__DISABLE_TRACE_MMIO__) to disable MMIO tracing in nVHE KVM as the tracepoint and MMIO logging symbols should not be visible at nVHE KVM as there is no way to execute them. It can also be used to disable MMIO tracing for specific drivers. Signed-off-by: Sai Prakash Ranjan <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent d593d64 commit 451f2f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arch/arm64/kvm/hyp/nvhe/Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
#
55

66
asflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS
7-
ccflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS
7+
8+
# Tracepoint and MMIO logging symbols should not be visible at nVHE KVM as
9+
# there is no way to execute them and any such MMIO access from nVHE KVM
10+
# will explode instantly (Words of Marc Zyngier). So introduce a generic flag
11+
# __DISABLE_TRACE_MMIO__ to disable MMIO tracing for nVHE KVM.
12+
ccflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS -D__DISABLE_TRACE_MMIO__
813

914
hostprogs := gen-hyprel
1015
HOST_EXTRACFLAGS += -I$(objtree)/include

0 commit comments

Comments
 (0)