arm64: KVM: allow export and import of generic timer regs
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 4 Jul 2014 14:54:14 +0000 (15:54 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:50 +0000 (17:18 +0200)
commitc675c7cef37bad776609e6923fe64019c10e2945
tree97d0527fc3e1d24b502855f26a0d6ad383f7e7a8
parent896f51b90443e91d7358914df4a24d9c152c2b48
arm64: KVM: allow export and import of generic timer regs

For correct guest suspend/resume behaviour we need to ensure we include
the generic timer registers for 64 bit guests. As CONFIG_KVM_ARM_TIMER is
always set for arm64 we don't need to worry about null implementations.
However I have re-jigged the kvm_arm_timer_set/get_reg declarations to
be in the common include/kvm/arm_arch_timer.h headers.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit 1df08ba0aa95f1a8832b7162eec51069bd9be7ae)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_host.h
arch/arm/kvm/guest.c
arch/arm64/kvm/guest.c
include/kvm/arm_arch_timer.h