KVM: arm/arm64: Fix up includes for trace.h
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
@@ -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
Marc Zyngier
maintainerQuoted 7 lines · Jeremy Cline
Fedora kernel builds on armv7hl began failing recently because
kvm_arm_exception_typeandkvm_arm_exception_classwere undeclared intrace.h. Add the missing include.Signed-off-by Jeremy Cline <[email protected]>---
Quoted 7 lines
I've not dug very deeply into what exactly changed between commit
b3a608222336(the last build that succeeded) and commit14cd0bd04907, but my guess was commit0e20f5e25556("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
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
Quoted 13 lines · Marc Zyngier
Quoted 12 lines · Jeremy Cline
Fedora kernel builds on armv7hl began failing recently because
kvm_arm_exception_typeandkvm_arm_exception_classwere undeclared intrace.h. Add the missing include.Signed-off-by Jeremy Cline <[email protected]>---
I've not dug very deeply into what exactly changed between commit
b3a608222336(the last build that succeeded) and commit14cd0bd04907, but my guess was commit0e20f5e25556("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.configThis 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@@ -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 kvmAfter enabling KVM in the above config (which requires LPAE), I've managed to reproduce
the problem.Fix now queued, thanks.
Thanks!
- Jeremy