Skip to contentSkip to conversation

KVM: arm/arm64: Fix up includes for trace.h

PATCH In review Jeremy Cline 2 participants 3 messages Feb 5, 2020 KVM arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: arm/arm64: Fix up includes for trace.h

Fedora kernel builds on armv7hl began failing recently because kvm_arm_exception_type and kvm_arm_exception_class were undeclared in trace.h. Add the missing include.

---

I've not dug very deeply into what exactly changed between commit b3a608222336 (the last build that succeeded) and commit 14cd0bd04907, but my guess was commit 0e20f5e25556 ("KVM: arm/arm64: Cleanup MMIO handling").

Fedora's build config is available at
https://src.fedoraproject.org/rpms/kernel/blob/master/f/kernel-armv7hl-fedora.config

 virt/kvm/arm/trace.h | 1 +
 1 file changed, 1 insertion(+)
virt/kvm/arm/trace.h +1 -0
index 204d210d01c2..cc94ccc68821 100644
@@ -4,6 +4,7 @@
 
 #include <kvm/arm_arch_timer.h>
 #include <linux/tracepoint.h>
+#include <asm/kvm_arm.h>
 
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM kvm
Signature · 1 line
2.24.1
maintainer
#1 lore raw
Quoted 7 lines · Jeremy Cline

Fedora kernel builds on armv7hl began failing recently because kvm_arm_exception_type and kvm_arm_exception_class were undeclared in trace.h. Add the missing include.

---

Quoted 7 lines

I've not dug very deeply into what exactly changed between commit b3a608222336 (the last build that succeeded) and commit 14cd0bd04907, but my guess was commit 0e20f5e25556 ("KVM: arm/arm64: Cleanup MMIO handling").

Fedora's build config is available at
https://src.fedoraproject.org/rpms/kernel/blob/master/f/kernel-armv7hl-fedora.config

This config doesn't have KVM enabled.

Quoted 9 lines
 virt/kvm/arm/trace.h | 1 +
 1 file changed, 1 insertion(+)
virt/kvm/arm/trace.h +0 -0
index 204d210d01c2..cc94ccc68821 100644

virt/kvm/arm/trace.h line 10

Quoted 7 lines
virt/kvm/arm/trace.h +1 -0
@@ -4,6 +4,7 @@
 
 #include <kvm/arm_arch_timer.h>
 #include <linux/tracepoint.h>
+#include <asm/kvm_arm.h>
 
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM kvm

After enabling KVM in the above config (which requires LPAE), I've managed to reproduce the problem.

Fix now queued, thanks.

        M.
Signature · 5 lines
Jazz is not dead. It just smells funny...
_______________________________________________
kvmarm mailing list
[email protected]
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm
#2 lore raw
Quoted 13 lines · Marc Zyngier
Quoted 12 lines · Jeremy Cline

Fedora kernel builds on armv7hl began failing recently because kvm_arm_exception_type and kvm_arm_exception_class were undeclared in trace.h. Add the missing include.

---

I've not dug very deeply into what exactly changed between commit b3a608222336 (the last build that succeeded) and commit 14cd0bd04907, but my guess was commit 0e20f5e25556 ("KVM: arm/arm64: Cleanup MMIO handling").

Quoted 5 lines
Quoted 2 lines

Fedora's build config is available at
https://src.fedoraproject.org/rpms/kernel/blob/master/f/kernel-armv7hl-fedora.config

This config doesn't have KVM enabled.

Whoops, I did indeed mean
https://src.fedoraproject.org/rpms/kernel/blob/master/f/kernel-armv7hl-lpae-fedora.config.
Sorry about that.

Quoted 14 lines
Quoted 14 lines
 virt/kvm/arm/trace.h | 1 +
 1 file changed, 1 insertion(+)
virt/kvm/arm/trace.h +1 -0
index 204d210d01c2..cc94ccc68821 100644
@@ -4,6 +4,7 @@
 
 #include <kvm/arm_arch_timer.h>
 #include <linux/tracepoint.h>
+#include <asm/kvm_arm.h>
 
Quoted 9 lines

virt/kvm/arm/trace.h line 10

Quoted 2 lines
virt/kvm/arm/trace.h +0 -0
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM kvm

After enabling KVM in the above config (which requires LPAE), I've managed to reproduce
the problem.

Fix now queued, thanks.

Thanks!

- Jeremy