@@ -66,8 +66,8 @@ struct kvm_context {
#ifdef KVM_CAP_IRQ_ROUTING
struct kvm_irq_routing *irq_routes;
int nr_allocated_irq_routes;
- int max_used_gsi;
#endif
+ int max_used_gsi;
};
int kvm_alloc_kernel_memory(kvm_context_t kvm, unsigned long memory,
@@ -815,6 +815,7 @@ int kvm_add_irq_route(kvm_context_t kvm, int gsi, int irqchip, int pin);
*/
int kvm_del_irq_route(kvm_context_t kvm, int gsi, int irqchip, int pin);
+struct kvm_irq_routing_entry;
/*!
* \brief Adds a routing entry to the temporary irq routing table
*