[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 13/21] KVM: Fix compilation on non-x86
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 13/21] KVM: Fix compilation on non-x86 |
Date: |
Thu, 2 Feb 2012 02:49:36 +0100 |
Commit 84b058d broke compilation for KVM on non-x86 targets, which
don't have KVM_CAP_IRQ_ROUTING defined.
Fix by not using the unavailable constant when it's not around.
Signed-off-by: Alexander Graf <address@hidden>
---
kvm-all.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/kvm-all.c b/kvm-all.c
index 7d4e544..0b87658 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1306,7 +1306,11 @@ int kvm_has_many_ioeventfds(void)
int kvm_has_gsi_routing(void)
{
+#ifdef KVM_CAP_IRQ_ROUTING
return kvm_check_extension(kvm_state, KVM_CAP_IRQ_ROUTING);
+#else
+ return false;
+#endif
}
int kvm_allows_irq0_override(void)
--
1.6.0.2
- [Qemu-ppc] [PATCH 17/21] PPC: Enable doorbell excp handlers, (continued)
- [Qemu-ppc] [PATCH 17/21] PPC: Enable doorbell excp handlers, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 09/21] PPC: booke206: Check for min/max TLB entry size, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 02/21] PPC: KVM: Update HIOR code to new interface, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 08/21] PPC: booke: add tlbnps handling, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 04/21] PPC: e500mc: add missing IVORs to bitmap, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 05/21] PPC: e500: msync is 440 only, e500 has real sync, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 01/21] KVM: Update headers (except HIOR mess), Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 14/21] PPC: E500: Add some more excp vectors, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 06/21] PPC: rename msync to msync_4xx, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 15/21] PPC: E500: Add doorbell defines, Alexander Graf, 2012/02/01
- [Qemu-ppc] [PATCH 13/21] KVM: Fix compilation on non-x86,
Alexander Graf <=
- Re: [Qemu-ppc] [Qemu-devel] [PULL 00/21] ppc patch queue 2012-02-02, Andreas Färber, 2012/02/02
- Re: [Qemu-ppc] [PULL 00/21] ppc patch queue 2012-02-02, Blue Swirl, 2012/02/04