aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2009-08-24 04:54:21 -0400
committerAvi Kivity <avi@redhat.com>2009-12-03 02:32:07 -0500
commit3e71f88bc90792a187703860cf22fbed7c12cbd9 (patch)
tree91219ea4a7714ac462c30c15314cfb8f25d0f812 /include/linux/kvm_host.h
parent46e624b95c36d729bdf24010fff11d16f6fe94fa (diff)
KVM: Maintain back mapping from irqchip/pin to gsi
Maintain back mapping from irqchip/pin to gsi to speedup interrupt acknowledgment notifications. [avi: build fix on non-x86/ia64] Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index f403e66557fb..cc2d7493598b 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -131,7 +131,10 @@ struct kvm_kernel_irq_routing_entry {
131 struct hlist_node link; 131 struct hlist_node link;
132}; 132};
133 133
134#ifdef __KVM_HAVE_IOAPIC
135
134struct kvm_irq_routing_table { 136struct kvm_irq_routing_table {
137 int chip[KVM_NR_IRQCHIPS][KVM_IOAPIC_NUM_PINS];
135 struct kvm_kernel_irq_routing_entry *rt_entries; 138 struct kvm_kernel_irq_routing_entry *rt_entries;
136 u32 nr_rt_entries; 139 u32 nr_rt_entries;
137 /* 140 /*
@@ -141,6 +144,12 @@ struct kvm_irq_routing_table {
141 struct hlist_head map[0]; 144 struct hlist_head map[0];
142}; 145};
143 146
147#else
148
149struct kvm_irq_routing_table {};
150
151#endif
152
144struct kvm { 153struct kvm {
145 spinlock_t mmu_lock; 154 spinlock_t mmu_lock;
146 spinlock_t requests_lock; 155 spinlock_t requests_lock;