arm64: 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:18 +0000 (13:11 +0100)
commitc4cbba9fa078f55d9f6d081dbb4aec7cf969e7c7
treeea19b33ef62aa0e5c78e92d83c2e3b40c3d295e2
parentc2f58514cfb374d5368c9da945f1765cd48eb0da
arm64: 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
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp.S