KVM: use KVM_CAP_IRQ_ROUTING to protect the routing related code
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 15 Jun 2012 19:07:02 +0000 (15:07 -0400)
committerAvi Kivity <avi@redhat.com>
Mon, 18 Jun 2012 13:06:35 +0000 (16:06 +0300)
commit9900b4b48b095895cf962054e45aafa49ef70f74
treed831176b62979612b2d4e5504d2d2de1ddee3817
parentdcce0489477f07ac1331aee71f18d6274e19a9c1
KVM: use KVM_CAP_IRQ_ROUTING to protect the routing related code

The KVM code sometimes uses CONFIG_HAVE_KVM_IRQCHIP to protect
code that is related to IRQ routing, which not all in-kernel
irqchips may support.

Use KVM_CAP_IRQ_ROUTING instead.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c