* [PATCH] libkvm: fix build with --with-patched-kernel on 2.6.29
@ 2009-04-07 9:12 Michael S. Tsirkin
2009-04-11 11:31 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Tsirkin @ 2009-04-07 9:12 UTC (permalink / raw)
To: avi; +Cc: kvm
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.
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
*
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-11 11:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 9:12 [PATCH] libkvm: fix build with --with-patched-kernel on 2.6.29 Michael S. Tsirkin
2009-04-11 11:31 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox