diff options
| author | Jintack Lim <jintack@cs.columbia.edu> | 2017-02-03 10:20:02 -0500 |
|---|---|---|
| committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-02-08 10:13:34 -0500 |
| commit | 009a5701bb2d166073f75643bc9237fe014c6bf5 (patch) | |
| tree | 584ef94620b3457b1acad3d0e759191b9687b891 /include/kvm | |
| parent | 9171fa2e0951b0cb6c443e0dce2c4620de3b1dfe (diff) | |
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>
Diffstat (limited to 'include/kvm')
| -rw-r--r-- | include/kvm/arm_arch_timer.h | 2 |
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 { | |||
| 40 | 40 | ||
| 41 | struct arch_timer_cpu { | 41 | struct arch_timer_cpu { |
| 42 | struct arch_timer_context vtimer; | 42 | struct arch_timer_context vtimer; |
| 43 | struct arch_timer_context ptimer; | ||
| 43 | 44 | ||
| 44 | /* Background timer used when the guest is not running */ | 45 | /* Background timer used when the guest is not running */ |
| 45 | struct hrtimer timer; | 46 | struct hrtimer timer; |
| @@ -75,4 +76,5 @@ void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu); | |||
| 75 | void kvm_timer_init_vhe(void); | 76 | void kvm_timer_init_vhe(void); |
| 76 | 77 | ||
| 77 | #define vcpu_vtimer(v) (&(v)->arch.timer_cpu.vtimer) | 78 | #define vcpu_vtimer(v) (&(v)->arch.timer_cpu.vtimer) |
| 79 | #define vcpu_ptimer(v) (&(v)->arch.timer_cpu.ptimer) | ||
| 78 | #endif | 80 | #endif |
