irqchip/gic: Add save/restore of the active state
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 16 Nov 2015 19:13:28 +0000 (19:13 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 17 Nov 2015 13:25:59 +0000 (14:25 +0100)
commit1c7d4dd46ee048afe19e1294634df6fa66862519
tree91c74527ad3a1041a33af93b2420fa95630685cd
parent92eda4ad4371225d6ccf9cded74315547e9a3153
irqchip/gic: Add save/restore of the active state

When using EOImode==1, we may mark interrupts as being forwarded
to a virtual machine. In that case, the interrupt is left active
while being passed to the VM.

If we suspend the system before the VM has deactivated the interrupt,
the active state will be lost (which may be very annoying, as this
may result in spurious interrupts and a confused guest).

To avoid this, save and restore the active state together with the
rest of the GIC registers.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: <linux-arm-kernel@lists.infradead.org>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Russell King <linux@arm.linux.org.uk>
Link: http://lkml.kernel.org/r/1447701208-18150-5-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-gic.c