ARM: KVM: arch_timers: Add timer world switch
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 23 Jan 2013 18:21:59 +0000 (13:21 -0500)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 11 Feb 2013 19:05:38 +0000 (19:05 +0000)
commitc7e3ba64ba16eddfbfc66ec099860f40e808e124
tree42050cb8efe5233629efaabc3917bad4a22741c8
parent53e724067a4ee9373972079e225d0d5f683b9c5a
ARM: KVM: arch_timers: Add timer world switch

Do the necessary save/restore dance for the timers in the world
switch code. In the process, allow the guest to read the physical
counter, which is useful for its own clock_event_device.

Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_asm.h
arch/arm/kernel/asm-offsets.c
arch/arm/kvm/arm.c
arch/arm/kvm/coproc.c
arch/arm/kvm/interrupts_head.S