Lines Matching refs:vtimer

383 	struct arch_timer_context *vtimer = vcpu_vtimer(vcpu);  in kvm_timer_update_run()  local
390 if (kvm_timer_should_fire(vtimer)) in kvm_timer_update_run()
590 struct arch_timer_context *vtimer = vcpu_vtimer(vcpu); in kvm_timer_vcpu_load_nogic() local
598 kvm_timer_update_irq(vcpu, kvm_timer_should_fire(vtimer), vtimer); in kvm_timer_vcpu_load_nogic()
610 if (vtimer->irq.level) in kvm_timer_vcpu_load_nogic()
648 struct arch_timer_context *vtimer = vcpu_vtimer(vcpu); in kvm_timer_should_notify_user() local
659 return kvm_timer_should_fire(vtimer) != vlevel || in kvm_timer_should_notify_user()
709 struct arch_timer_context *vtimer = vcpu_vtimer(vcpu); in unmask_vtimer_irq_user() local
711 if (!kvm_timer_should_fire(vtimer)) { in unmask_vtimer_irq_user()
712 kvm_timer_update_irq(vcpu, false, vtimer); in unmask_vtimer_irq_user()
714 set_timer_irq_phys_active(vtimer, false); in unmask_vtimer_irq_user()
786 struct arch_timer_context *vtimer = vcpu_vtimer(vcpu); in kvm_timer_vcpu_init() local
789 vtimer->vcpu = vcpu; in kvm_timer_vcpu_init()
799 hrtimer_init(&vtimer->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); in kvm_timer_vcpu_init()
801 vtimer->hrtimer.function = kvm_hrtimer_expire; in kvm_timer_vcpu_init()
804 vtimer->irq.irq = default_vtimer_irq.irq; in kvm_timer_vcpu_init()
807 vtimer->host_timer_irq = host_vtimer_irq; in kvm_timer_vcpu_init()
810 vtimer->host_timer_irq_flags = host_vtimer_irq_flags; in kvm_timer_vcpu_init()
1328 struct arch_timer_context *vtimer = vcpu_vtimer(vcpu); in kvm_arm_timer_set_attr() local
1349 set_timer_irqs(vcpu->kvm, vtimer->irq.irq, irq); in kvm_arm_timer_set_attr()