From 0de5debb768107789d56d99a952b39f3af38b61c Mon Sep 17 00:00:00 2001 From: Christoffer Dall Date: Fri, 15 Jun 2012 15:07:13 -0400 Subject: [PATCH] --- yaml --- r: 315849 b: refs/heads/master c: a1e4ccb990447df0fe83d164d9a7bc2e6c4b7db7 h: refs/heads/master i: 315847: 6375a8f210d54ba44c789b690f67ea6c0589dab1 v: v3 --- [refs] | 2 +- trunk/arch/ia64/include/asm/kvm.h | 1 + trunk/arch/x86/include/asm/kvm.h | 1 + trunk/include/trace/events/kvm.h | 4 +++- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 080b8e747fe1..5d865cf882ea 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9900b4b48b095895cf962054e45aafa49ef70f74 +refs/heads/master: a1e4ccb990447df0fe83d164d9a7bc2e6c4b7db7 diff --git a/trunk/arch/ia64/include/asm/kvm.h b/trunk/arch/ia64/include/asm/kvm.h index b9f82c84f093..ec6c6b301238 100644 --- a/trunk/arch/ia64/include/asm/kvm.h +++ b/trunk/arch/ia64/include/asm/kvm.h @@ -26,6 +26,7 @@ /* Select x86 specific features in */ #define __KVM_HAVE_IOAPIC +#define __KVM_HAVE_IRQ_LINE #define __KVM_HAVE_DEVICE_ASSIGNMENT /* Architectural interrupt line count. */ diff --git a/trunk/arch/x86/include/asm/kvm.h b/trunk/arch/x86/include/asm/kvm.h index e7d1c194d272..246617efd67f 100644 --- a/trunk/arch/x86/include/asm/kvm.h +++ b/trunk/arch/x86/include/asm/kvm.h @@ -12,6 +12,7 @@ /* Select x86 specific features in */ #define __KVM_HAVE_PIT #define __KVM_HAVE_IOAPIC +#define __KVM_HAVE_IRQ_LINE #define __KVM_HAVE_DEVICE_ASSIGNMENT #define __KVM_HAVE_MSI #define __KVM_HAVE_USER_NMI diff --git a/trunk/include/trace/events/kvm.h b/trunk/include/trace/events/kvm.h index 3df5925fe641..7ef9e759f499 100644 --- a/trunk/include/trace/events/kvm.h +++ b/trunk/include/trace/events/kvm.h @@ -37,7 +37,7 @@ TRACE_EVENT(kvm_userspace_exit, __entry->errno < 0 ? -__entry->errno : __entry->reason) ); -#if defined(__KVM_HAVE_IOAPIC) +#if defined(__KVM_HAVE_IRQ_LINE) TRACE_EVENT(kvm_set_irq, TP_PROTO(unsigned int gsi, int level, int irq_source_id), TP_ARGS(gsi, level, irq_source_id), @@ -57,7 +57,9 @@ TRACE_EVENT(kvm_set_irq, TP_printk("gsi %u level %d source %d", __entry->gsi, __entry->level, __entry->irq_source_id) ); +#endif +#if defined(__KVM_HAVE_IOAPIC) #define kvm_deliver_mode \ {0x0, "Fixed"}, \ {0x1, "LowPrio"}, \