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>
Fri, 11 Jul 2014 11:46:55 +0000 (04:46 -0700)
commit1df08ba0aa95f1a8832b7162eec51069bd9be7ae
tree17d48cbca3717b162f311bc00d4a6d4c003c432d
parentefd48ceacea78e4d4656aa0a6bf4c5b92ed22130
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>
arch/arm/include/asm/kvm_host.h
arch/arm/kvm/guest.c
arch/arm64/kvm/guest.c
include/kvm/arm_arch_timer.h