Make libkvm build with --with-patched-kernel on 2.6.29. Reported-by: Michael S. Tsirkin <m.s.tsirkin@xxxxxxxxx> --- The patch was actually done by Avi. diff --git a/libkvm/kvm-common.h b/libkvm/kvm-common.h index 70a95c2..96361e8 100644 --- a/libkvm/kvm-common.h +++ b/libkvm/kvm-common.h @@ -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, diff --git a/libkvm/libkvm.h b/libkvm/libkvm.h index d3e431a..ce6f054 100644 --- a/libkvm/libkvm.h +++ b/libkvm/libkvm.h @@ -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 * -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html