@@ -2,12 +2,12 @@
#include "mmu.h"
#include "mmu_internal.h"
-#include "mmutrace.h"
#include "tdp_iter.h"
#include "tdp_mmu.h"
#include "spte.h"
#include <kvm/tdp_pgtable.h>
+#include <kvm/mmutrace.h>
#include <asm/cmpxchg.h>
#include <trace/events/kvm.h>
new file mode 100644
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#if !defined(_TRACE_KVM_MMUTRACE_H) || defined(TRACE_HEADER_MULTI_READ)
+#define _TRACE_KVM_MMUTRACE_H
+
+#ifdef CONFIG_X86
+#include "../../arch/x86/kvm/mmu/mmutrace.h"
+#else
+#define trace_mark_mmio_spte(...) do {} while (0)
+#define trace_kvm_mmu_get_page(...) do {} while (0)
+#define trace_kvm_mmu_prepare_zap_page(...) do {} while (0)
+#define trace_kvm_mmu_set_spte(...) do {} while (0)
+#define trace_kvm_mmu_spte_requested(...) do {} while (0)
+#define trace_kvm_mmu_split_huge_page(...) do {} while (0)
+#define trace_kvm_tdp_mmu_spte_changed(...) do {} while (0)
+#endif
+
+#endif /* _TRACE_KVM_MMUTRACE_H */
Create stub tracepoints outside of x86. The KVM MMU tracepoints can be moved to common code, but will be deferred to a future commit. No functional change intended. Signed-off-by: David Matlack <dmatlack@google.com> --- arch/x86/kvm/mmu/tdp_mmu.c | 2 +- include/kvm/mmutrace.h | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 include/kvm/mmutrace.h