Skip to content

Commit 009a570

Browse files
soccertackMarc Zyngier
authored andcommitted
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>
1 parent 9171fa2 commit 009a570

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/kvm/arm_arch_timer.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ struct arch_timer_context {
4040

4141
struct arch_timer_cpu {
4242
struct arch_timer_context vtimer;
43+
struct arch_timer_context ptimer;
4344

4445
/* Background timer used when the guest is not running */
4546
struct hrtimer timer;
@@ -75,4 +76,5 @@ void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu);
7576
void kvm_timer_init_vhe(void);
7677

7778
#define vcpu_vtimer(v) (&(v)->arch.timer_cpu.vtimer)
79+
#define vcpu_ptimer(v) (&(v)->arch.timer_cpu.ptimer)
7880
#endif

0 commit comments

Comments
 (0)