]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb42cc6cfacd46875123a8ac830d316f491b4d729
treea126efb3a85113f4c215568a5072598b24affdce
parentdfb78957e4ded677e123614b71fc5c754a5ee187
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