]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit688bc577ac42ae3d07c889a1f0a72f0b23763d58
treeac60254c2d0efd4d0eb7bd44aef406566bae880d
parentc4cbba9fa078f55d9f6d081dbb4aec7cf969e7c7
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