summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJintack Lim <jintack@cs.columbia.edu>2017-02-03 16:20:02 +0100
committerMarc Zyngier <marc.zyngier@arm.com>2017-02-08 16:13:34 +0100
commit009a5701bb2d166073f75643bc9237fe014c6bf5 (patch)
tree584ef94620b3457b1acad3d0e759191b9687b891
parentKVM: arm/arm64: Decouple kvm timer functions from virtual timer (diff)
downloadlinux-009a5701bb2d166073f75643bc9237fe014c6bf5.tar.xz
linux-009a5701bb2d166073f75643bc9237fe014c6bf5.zip
KVM: arm/arm64: Add the EL1 physical timer context
Add the EL1 physical timer context. Signed-off-by: Jintack Lim <jintack@cs.columbia.edu> Acked-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
-rw-r--r--include/kvm/arm_arch_timer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h
index f46fa3b62b06..6445a3d9a6e2 100644
--- a/include/kvm/arm_arch_timer.h
+++ b/include/kvm/arm_arch_timer.h
@@ -40,6 +40,7 @@ struct arch_timer_context {
struct arch_timer_cpu {
struct arch_timer_context vtimer;
+ struct arch_timer_context ptimer;
/* Background timer used when the guest is not running */
struct hrtimer timer;
@@ -75,4 +76,5 @@ void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu);
void kvm_timer_init_vhe(void);
#define vcpu_vtimer(v) (&(v)->arch.timer_cpu.vtimer)
+#define vcpu_ptimer(v) (&(v)->arch.timer_cpu.ptimer)
#endif