]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0e983914834d9c3f7b0c5d41d8548756bdc60962
tree9fdf768971d7c10292a34b9d15c5f7a1abe1301c
parent5f4ddfa9ea293d70044aabd540210abf5f9404e8
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