[PATCH v4 05/20] KVM: arm/arm64: Support calling vgic_update_irq_pending from irq context
Marc Zyngier
marc.zyngier at arm.com
Wed Oct 25 06:45:28 PDT 2017
On Fri, Oct 20 2017 at 1:49:24 pm BST, Christoffer Dall <christoffer.dall at linaro.org> wrote:
> From: Christoffer Dall <cdall at linaro.org>
>
> We are about to optimize our timer handling logic which involves
> injecting irqs to the vgic directly from the irq handler.
>
> Unfortunately, the injection path can take any AP list lock and irq lock
> and we must therefore make sure to use spin_lock_irqsave where ever
> interrupts are enabled and we are taking any of those locks, to avoid
> deadlocking between process context and the ISR.
>
> This changes a lot of the VGIC code, but The good news are that the
> changes are mostly mechanical.
>
> Signed-off-by: Christoffer Dall <cdall at linaro.org>
Acked-by: Marc Zyngier <marc,zyngier at arm.com>
M.
--
Jazz is not dead. It just smells funny.
More information about the linux-arm-kernel
mailing list