arm/arm64: KVM: arch_timer: Initialize cntvoff at kvm_init
authorChristoffer Dall <christoffer.dall@linaro.org>
Sat, 16 Nov 2013 18:51:25 +0000 (10:51 -0800)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:23 +0000 (17:18 +0200)
commitb5a94dd48dc470624dcb7d581432a439d7a289c0
tree3de419ee88c5a7716091e701cc6833fb3ddd0103
parent7e2c9ce0199412b559bbf527956c004a05a64619
arm/arm64: KVM: arch_timer: Initialize cntvoff at kvm_init

Initialize the cntvoff at kvm_init_vm time, not before running the VCPUs
at the first time because that will overwrite any potentially restored
values from user space.

Cc: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Marc Zynger <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit a1a64387adeeba7a34ce06f2774e81f496ee803b)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c
virt/kvm/arm/vgic.c