KVM: arm/arm64: Introduce an allocator for in-kernel irq lines
authorChristoffer Dall <cdall@linaro.org>
Thu, 4 May 2017 11:24:20 +0000 (13:24 +0200)
committerChristoffer Dall <cdall@linaro.org>
Thu, 8 Jun 2017 14:59:57 +0000 (16:59 +0200)
commitc6ccd30e0de384f506449474ca780ff680ad4217
tree5fa2382ca0cb42e08e0dd080f9a68769f5547a6b
parent99a1db7a2c9b2ecb9a801cee3f6a7a71945a2fca
KVM: arm/arm64: Introduce an allocator for in-kernel irq lines

Having multiple devices being able to signal the same interrupt line is
very confusing and almost certainly guarantees a configuration error.

Therefore, introduce a very simple allocator which allows a device to
claim an interrupt line from the vgic for a given VM.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic/vgic.c