KVM: Add KVM_IRQCHIP_NUM_PINS in addition to KVM_IOAPIC_NUM_PINS
authorAlexander Graf <agraf@suse.de>
Mon, 15 Apr 2013 08:42:33 +0000 (10:42 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:27:13 +0000 (20:27 +0200)
commit8175e5b79c38a1d85225da516fa1a0ecbf2fdbca
tree9fdf768971d7c10292a34b9d15c5f7a1abe1301c
parentc35635efdc0312e013ebda1c8f3b5dd038c0d0e7
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>
arch/x86/include/asm/kvm_host.h
include/linux/kvm_host.h
virt/kvm/irq_comm.c