[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-ppc] [PATCH] KVM: Fix compilation on non-x86

From: Alexander Graf
Subject: [Qemu-ppc] [PATCH] KVM: Fix compilation on non-x86
Date: Wed, 25 Jan 2012 18:33:03 +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 e411d3c..831f39a 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1305,7 +1305,11 @@ int kvm_has_many_ioeventfds(void)
 int kvm_has_gsi_routing(void)
     return kvm_check_extension(kvm_state, KVM_CAP_IRQ_ROUTING);
+    return false;
 int kvm_allows_irq0_override(void)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]