summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/lttng/lttng-modules/0004-Fix-Revert-KVM-MMU-show-mmu_valid_gen.-v5.1.patch
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2019-05-19 21:38:09 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2019-05-21 14:54:56 +0800
commit886d2063cd54069f831239febf2be118ab774d01 (patch)
treec87ae8a2363f532a9a1c5d36ecc0ce5054565a97 /recipes-kernel/lttng/lttng-modules/0004-Fix-Revert-KVM-MMU-show-mmu_valid_gen.-v5.1.patch
parent8cd484abb6f5728f4dcbb4d760d81a2e66240159 (diff)
downloadmeta-intel-886d2063cd54069f831239febf2be118ab774d01.tar.gz
lttng-modules: add bbappend
Backport patches from upstream to fix build errors when building with kernel v5.1. These patches are backported from stable branch. The code v5.1 is protected by ifdefs so v4.19 works as well. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-kernel/lttng/lttng-modules/0004-Fix-Revert-KVM-MMU-show-mmu_valid_gen.-v5.1.patch')
-rw-r--r--recipes-kernel/lttng/lttng-modules/0004-Fix-Revert-KVM-MMU-show-mmu_valid_gen.-v5.1.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/recipes-kernel/lttng/lttng-modules/0004-Fix-Revert-KVM-MMU-show-mmu_valid_gen.-v5.1.patch b/recipes-kernel/lttng/lttng-modules/0004-Fix-Revert-KVM-MMU-show-mmu_valid_gen.-v5.1.patch
new file mode 100644
index 00000000..0e0ab765
--- /dev/null
+++ b/recipes-kernel/lttng/lttng-modules/0004-Fix-Revert-KVM-MMU-show-mmu_valid_gen.-v5.1.patch
@@ -0,0 +1,52 @@
1From f65f074de41fcc2c176397d54947f5ae2104671b Mon Sep 17 00:00:00 2001
2From: Michael Jeanson <mjeanson@efficios.com>
3Date: Mon, 18 Mar 2019 16:20:35 -0400
4Subject: [PATCH 4/5] Fix: Revert "KVM: MMU: show mmu_valid_gen..." (v5.1)
5
6See upstream commit :
7
8 commit b59c4830ca185ba0e9f9e046fb1cd10a4a92627a
9 Author: Sean Christopherson <sean.j.christopherson@intel.com>
10 Date: Tue Feb 5 13:01:30 2019 -0800
11
12 Revert "KVM: MMU: show mmu_valid_gen in shadow page related tracepoints"
13
14 ...as part of removing x86 KVM's fast invalidate mechanism, i.e. this
15 is one part of a revert all patches from the series that introduced the
16 mechanism[1].
17
18 This reverts commit 2248b023219251908aedda0621251cffc548f258.
19
20Upstream-Status: Backport [http://git.lttng.org/?p=lttng-modules.git;a=commit;h=8a88382fb09bbeda443044ee8cdb8f92040636bc]
21
22Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
23Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
24Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
25---
26 .../events/lttng-module/arch/x86/kvm/mmutrace.h | 10 +++++++++-
27 1 file changed, 9 insertions(+), 1 deletion(-)
28
29diff --git a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h
30index e3f7abd..71e8b34 100644
31--- a/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h
32+++ b/instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h
33@@ -13,7 +13,15 @@
34 #undef TRACE_SYSTEM
35 #define TRACE_SYSTEM kvm_mmu
36
37-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
38+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,1,0))
39+
40+#define LTTNG_KVM_MMU_PAGE_FIELDS \
41+ ctf_integer(__u64, gfn, (sp)->gfn) \
42+ ctf_integer(__u32, role, (sp)->role.word) \
43+ ctf_integer(__u32, root_count, (sp)->root_count) \
44+ ctf_integer(bool, unsync, (sp)->unsync)
45+
46+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
47
48 #define LTTNG_KVM_MMU_PAGE_FIELDS \
49 ctf_integer(unsigned long, mmu_valid_gen, (sp)->mmu_valid_gen) \
50--
512.17.0
52