diff --git a/kvm-all.c b/kvm-all.c index 7d4e544c5204fc41c4c809283ce2f46526b94ec2..0b87658f6a182099b1552b322e48d0f90b07653c 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)