diff mbox

libkvm: fix build with --with-patched-kernel on 2.6.29

Message ID 20090407091231.GA24488@dhcp-1-124.tlv.redhat.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Michael S. Tsirkin April 7, 2009, 9:12 a.m. UTC
Make libkvm build with --with-patched-kernel on 2.6.29.

Reported-by: Michael S. Tsirkin <m.s.tsirkin@gmail.com>

---

The patch was actually done by Avi.

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Avi Kivity April 11, 2009, 11:31 a.m. UTC | #1
Michael S. Tsirkin wrote:
> Make libkvm build with --with-patched-kernel on 2.6.29.
>
>   

Applied, thanks.
diff mbox

Patch

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
  *