diff options
author | Sai Prakash Ranjan <quic_saipraka@quicinc.com> | 2022-05-18 22:14:15 +0530 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-06-15 17:41:12 +0200 |
commit | 451f2f1c908ba6225e2de82c53eae399f9d342c0 (patch) | |
tree | 6b91b9fb9a9d19a6bef029c76a665c2d44b618c7 /arch/arm64 | |
parent | d593d64f043add170d8ea9cf698449637917dcf9 (diff) | |
download | linux-stable-451f2f1c908ba6225e2de82c53eae399f9d342c0.tar.gz linux-stable-451f2f1c908ba6225e2de82c53eae399f9d342c0.tar.bz2 linux-stable-451f2f1c908ba6225e2de82c53eae399f9d342c0.zip |
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 <quic_saipraka@quicinc.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm64')
-rw-r--r-- | arch/arm64/kvm/hyp/nvhe/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/Makefile b/arch/arm64/kvm/hyp/nvhe/Makefile index f9fe4dc21b1f..87d22a18b7a5 100644 --- a/arch/arm64/kvm/hyp/nvhe/Makefile +++ b/arch/arm64/kvm/hyp/nvhe/Makefile @@ -4,7 +4,12 @@ # asflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS -ccflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS + +# Tracepoint and MMIO logging symbols should not be visible at nVHE KVM as +# there is no way to execute them and any such MMIO access from nVHE KVM +# will explode instantly (Words of Marc Zyngier). So introduce a generic flag +# __DISABLE_TRACE_MMIO__ to disable MMIO tracing for nVHE KVM. +ccflags-y := -D__KVM_NVHE_HYPERVISOR__ -D__DISABLE_EXPORTS -D__DISABLE_TRACE_MMIO__ hostprogs := gen-hyprel HOST_EXTRACFLAGS += -I$(objtree)/include |