]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:14:59 +0000 (11:14 +0200)
commitf3ad05f6c31a18c83d46d234a32769f151c46593
tree51f12ddd5bbcbb20f9e04552ad1a8ff40bf4cc77
parent0057950da5b287bbc3885872c98c57ee33bb26c5
arm/arm64: KVM: arch_timer: Initialize cntvoff at kvm_init

commit a1a64387adeeba7a34ce06f2774e81f496ee803b upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/kvm/arm.c
virt/kvm/arm/vgic.c