KVM: arm/arm64: Check if irq lines to the GIC are already used
authorChristoffer Dall <cdall@linaro.org>
Thu, 4 May 2017 11:32:53 +0000 (13:32 +0200)
committerChristoffer Dall <cdall@linaro.org>
Thu, 8 Jun 2017 15:00:12 +0000 (17:00 +0200)
commitabcb851daa617706e90ee7d39d4d9a74ac05f4b1
treea126efb3a85113f4c215568a5072598b24affdce
parentc6ccd30e0de384f506449474ca780ff680ad4217
KVM: arm/arm64: Check if irq lines to the GIC are already used

We check if other in-kernel devices have already been connected to the
GIC for a particular interrupt line when possible.

For the PMU, we can do this whenever setting the PMU interrupt number
from userspace.

For the timers, we have to wait until we try to enable the timer,
because we have a concept of default IRQ numbers that userspace
shouldn't have to work around in the initialization phase.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/arch_timer.c
virt/kvm/arm/pmu.c