Lines Matching refs:ktimer
1627 struct kvm_timer *ktimer = &apic->lapic_timer; in kvm_apic_inject_pending_timer_irqs() local
1631 ktimer->tscdeadline = 0; in kvm_apic_inject_pending_timer_irqs()
1633 ktimer->tscdeadline = 0; in kvm_apic_inject_pending_timer_irqs()
1634 ktimer->target_expiration = 0; in kvm_apic_inject_pending_timer_irqs()
1641 struct kvm_timer *ktimer = &apic->lapic_timer; in apic_timer_expired() local
1646 if (apic_lvtt_tscdeadline(apic) || ktimer->hv_timer_in_use) in apic_timer_expired()
1647 ktimer->expired_tscdeadline = ktimer->tscdeadline; in apic_timer_expired()
1678 struct kvm_timer *ktimer = &apic->lapic_timer; in start_sw_tscdeadline() local
1679 u64 guest_tsc, tscdeadline = ktimer->tscdeadline; in start_sw_tscdeadline()
1701 expire = ktime_sub_ns(expire, ktimer->timer_advance_ns); in start_sw_tscdeadline()
1702 hrtimer_start(&ktimer->timer, expire, HRTIMER_MODE_ABS_HARD); in start_sw_tscdeadline()
1844 struct kvm_timer *ktimer = &apic->lapic_timer; in start_hv_timer() local
1852 if (!ktimer->tscdeadline) in start_hv_timer()
1855 if (kvm_x86_ops.set_hv_timer(vcpu, ktimer->tscdeadline, &expired)) in start_hv_timer()
1858 ktimer->hv_timer_in_use = true; in start_hv_timer()
1859 hrtimer_cancel(&ktimer->timer); in start_hv_timer()
1871 if (atomic_read(&ktimer->pending)) { in start_hv_timer()
1879 trace_kvm_hv_timer_state(vcpu->vcpu_id, ktimer->hv_timer_in_use); in start_hv_timer()
1886 struct kvm_timer *ktimer = &apic->lapic_timer; in start_sw_timer() local
1891 if (!apic_lvtt_period(apic) && atomic_read(&ktimer->pending)) in start_sw_timer()
2422 struct kvm_timer *ktimer = container_of(data, struct kvm_timer, timer); in apic_timer_fn() local
2423 struct kvm_lapic *apic = container_of(ktimer, struct kvm_lapic, lapic_timer); in apic_timer_fn()
2429 hrtimer_add_expires_ns(&ktimer->timer, ktimer->period); in apic_timer_fn()