diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-08-24 11:54:21 +0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 09:32:07 +0200 |
commit | 3e71f88bc90792a187703860cf22fbed7c12cbd9 (patch) | |
tree | 91219ea4a7714ac462c30c15314cfb8f25d0f812 /include | |
parent | 46e624b95c36d729bdf24010fff11d16f6fe94fa (diff) | |
download | linux-stable-3e71f88bc90792a187703860cf22fbed7c12cbd9.tar.gz linux-stable-3e71f88bc90792a187703860cf22fbed7c12cbd9.tar.bz2 linux-stable-3e71f88bc90792a187703860cf22fbed7c12cbd9.zip |
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')
-rw-r--r-- | include/linux/kvm_host.h | 9 |
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 { struct hlist_node link; }; +#ifdef __KVM_HAVE_IOAPIC + struct kvm_irq_routing_table { + int chip[KVM_NR_IRQCHIPS][KVM_IOAPIC_NUM_PINS]; struct kvm_kernel_irq_routing_entry *rt_entries; u32 nr_rt_entries; /* @@ -141,6 +144,12 @@ struct kvm_irq_routing_table { struct hlist_head map[0]; }; +#else + +struct kvm_irq_routing_table {}; + +#endif + struct kvm { spinlock_t mmu_lock; spinlock_t requests_lock; |