Thread (13 messages) 13 messages, 2 authors, 2017-01-30

[RFC v2 04/10] KVM: arm/arm64: Add the EL1 physical timer context

From: Jintack Lim <hidden>
Date: 2017-01-27 01:07:06
Also in: kvm, kvmarm, lkml
Subsystem: kernel virtual machine for arm64 (kvm/arm64), the rest · Maintainers: Marc Zyngier, Oliver Upton, Linus Torvalds

Add the EL1 physical timer context.

Signed-off-by: Jintack Lim <redacted>
---
 include/kvm/arm_arch_timer.h | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h
index d921d20..69f648b 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;
@@ -77,4 +78,5 @@ bool kvm_timer_should_fire(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
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help