diff options
author | Alexander Graf <agraf@suse.de> | 2013-04-15 10:42:33 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-04-26 20:27:13 +0200 |
commit | 8175e5b79c38a1d85225da516fa1a0ecbf2fdbca (patch) | |
tree | 9fdf768971d7c10292a34b9d15c5f7a1abe1301c /include/linux/kvm_host.h | |
parent | c35635efdc0312e013ebda1c8f3b5dd038c0d0e7 (diff) | |
download | linux-3.10-8175e5b79c38a1d85225da516fa1a0ecbf2fdbca.tar.gz linux-3.10-8175e5b79c38a1d85225da516fa1a0ecbf2fdbca.tar.bz2 linux-3.10-8175e5b79c38a1d85225da516fa1a0ecbf2fdbca.zip |
KVM: Add KVM_IRQCHIP_NUM_PINS in addition to KVM_IOAPIC_NUM_PINS
The concept of routing interrupt lines to an irqchip is nothing
that is IOAPIC specific. Every irqchip has a maximum number of pins
that can be linked to irq lines.
So let's add a new define that allows us to reuse generic code for
non-IOAPIC platforms.
Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index 93a50054d46..bf3b1dcb8b3 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h @@ -307,7 +307,7 @@ struct kvm_kernel_irq_routing_entry { #ifdef __KVM_HAVE_IOAPIC struct kvm_irq_routing_table { - int chip[KVM_NR_IRQCHIPS][KVM_IOAPIC_NUM_PINS]; + int chip[KVM_NR_IRQCHIPS][KVM_IRQCHIP_NUM_PINS]; struct kvm_kernel_irq_routing_entry *rt_entries; u32 nr_rt_entries; /* |