ARM: KVM: arch_timers: zero CNTVOFF upon return to host
authorMark Rutland <mark.rutland@arm.com>
Tue, 26 Mar 2013 13:41:35 +0000 (13:41 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:10:23 +0000 (17:10 +0200)
commit9861d210e02d5fb6ffcd5ea992f62043105813b3
treee0417e182584d93cad84a980151b03b5f9713cae
parent7ce8a35ca784be99a50520476c1a34aad2755b7a
ARM: KVM: arch_timers: zero CNTVOFF upon return to host

To use the virtual counters from the host, we need to ensure that
CNTVOFF doesn't change unexpectedly. When we change to a guest, we
replace the host's CNTVOFF, but we don't restore it when returning to
the host.

As the host sets CNTVOFF to zero, and never changes it, we can simply
zero CNTVOFF when returning to the host. This patch adds said zeroing to
the return to host path.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Christoffer Dall <cdall@cs.columbia.edu>
(cherry picked from commit f793c23ebbe5afd1cabf4a42a3a297022213756f)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/interrupts_head.S