]> git.baikalelectronics.ru Git - kernel.git/commit
arm: KVM: Disable virtual timer even if the guest is not using it
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 16 Sep 2015 15:18:59 +0000 (16:18 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 17 Sep 2015 12:11:48 +0000 (13:11 +0100)
commitbc8593335b9dbf46adb4ea16711d8a57afa30bee
treeac60254c2d0efd4d0eb7bd44aef406566bae880d
parent866b28f795265ead66845b69c0d62931ae3bd526
arm: KVM: Disable virtual timer even if the guest is not using it

When running a guest with the architected timer disabled (with QEMU and
the kernel_irqchip=off option, for example), it is important to make
sure the timer gets turned off. Otherwise, the guest may try to
enable it anyway, leading to a screaming HW interrupt.

The fix is to unconditionally turn off the virtual timer on guest
exit.

Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/interrupts_head.S