]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: GIC: reset the CPU interface before running a new guest
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Wed, 9 Jul 2014 17:27:57 +0000 (18:27 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 19 Dec 2014 10:04:07 +0000 (11:04 +0100)
commit9e0bc4dffb7b039684a945b863e58de3d0ea9c8a
tree1ea50725fe45b038ef9a5a998a34f1a921dd4805
parent50695525405bc3f11fde932edb277016ed315905
arm: GIC: reset the CPU interface before running a new guest

All pending interrupts need to be cleared before running a new guest.
This patch resets the list registers, the software pending queue, and
the GIC hypervisor config registers.
Since the suspend loop was entered through the IRQ handler, we also need
to deactivate that active IPI.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
[Jan: switch to mmio accessors]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/control.c
hypervisor/arch/arm/gic-v3.c
hypervisor/arch/arm/include/asm/gic_v3.h
hypervisor/arch/arm/include/asm/irqchip.h
hypervisor/arch/arm/irqchip.c