Skip to content

Commit

Permalink
KVM: arm/arm64: Add the EL1 physical timer context
Browse files Browse the repository at this point in the history
Add the EL1 physical timer context.

Signed-off-by: Jintack Lim <[email protected]>
Acked-by: Christoffer Dall <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
  • Loading branch information
soccertack authored and Marc Zyngier committed Feb 8, 2017
1 parent 9171fa2 commit 009a570
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/kvm/arm_arch_timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

0 comments on commit 009a570

Please sign in to comment.