Lines Matching refs:ktimer

1710 	struct kvm_timer *ktimer = &apic->lapic_timer;  in kvm_apic_inject_pending_timer_irqs()  local
1714 ktimer->tscdeadline = 0; in kvm_apic_inject_pending_timer_irqs()
1716 ktimer->tscdeadline = 0; in kvm_apic_inject_pending_timer_irqs()
1717 ktimer->target_expiration = 0; in kvm_apic_inject_pending_timer_irqs()
1724 struct kvm_timer *ktimer = &apic->lapic_timer; in apic_timer_expired() local
1729 if (apic_lvtt_tscdeadline(apic) || ktimer->hv_timer_in_use) in apic_timer_expired()
1730 ktimer->expired_tscdeadline = ktimer->tscdeadline; in apic_timer_expired()
1761 struct kvm_timer *ktimer = &apic->lapic_timer; in start_sw_tscdeadline() local
1762 u64 guest_tsc, tscdeadline = ktimer->tscdeadline; in start_sw_tscdeadline()
1784 expire = ktime_sub_ns(expire, ktimer->timer_advance_ns); in start_sw_tscdeadline()
1785 hrtimer_start(&ktimer->timer, expire, HRTIMER_MODE_ABS_HARD); in start_sw_tscdeadline()
1927 struct kvm_timer *ktimer = &apic->lapic_timer; in start_hv_timer() local
1935 if (!ktimer->tscdeadline) in start_hv_timer()
1938 if (static_call(kvm_x86_set_hv_timer)(vcpu, ktimer->tscdeadline, &expired)) in start_hv_timer()
1941 ktimer->hv_timer_in_use = true; in start_hv_timer()
1942 hrtimer_cancel(&ktimer->timer); in start_hv_timer()
1954 if (atomic_read(&ktimer->pending)) { in start_hv_timer()
1962 trace_kvm_hv_timer_state(vcpu->vcpu_id, ktimer->hv_timer_in_use); in start_hv_timer()
1969 struct kvm_timer *ktimer = &apic->lapic_timer; in start_sw_timer() local
1974 if (!apic_lvtt_period(apic) && atomic_read(&ktimer->pending)) in start_sw_timer()
2557 struct kvm_timer *ktimer = container_of(data, struct kvm_timer, timer); in apic_timer_fn() local
2558 struct kvm_lapic *apic = container_of(ktimer, struct kvm_lapic, lapic_timer); in apic_timer_fn()
2564 hrtimer_add_expires_ns(&ktimer->timer, ktimer->period); in apic_timer_fn()