From: Alexander Graf Date: Wed, 25 Jan 2012 17:28:05 +0000 (+0100) Subject: KVM: Fix compilation on non-x86 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a9c5eb0db1739d53e7a3b1491e496eb25d3db3f4;p=qemu.git KVM: Fix compilation on non-x86 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 --- diff --git a/kvm-all.c b/kvm-all.c index 7d4e544c52..0b87658f6a 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)