Lines Matching refs:timer_advance_ns
1555 u64 timer_advance_ns = vcpu->arch.apic->lapic_timer.timer_advance_ns; in __wait_lapic_expire() local
1565 nsec_to_cycles(vcpu, timer_advance_ns))); in __wait_lapic_expire()
1569 ndelay(min_t(u32, delay_ns, timer_advance_ns)); in __wait_lapic_expire()
1577 u32 timer_advance_ns = apic->lapic_timer.timer_advance_ns; in adjust_lapic_timer_advance() local
1589 timer_advance_ns -= ns/LAPIC_TIMER_ADVANCE_ADJUST_STEP; in adjust_lapic_timer_advance()
1594 timer_advance_ns += ns/LAPIC_TIMER_ADVANCE_ADJUST_STEP; in adjust_lapic_timer_advance()
1597 if (unlikely(timer_advance_ns > LAPIC_TIMER_ADVANCE_NS_MAX)) in adjust_lapic_timer_advance()
1598 timer_advance_ns = LAPIC_TIMER_ADVANCE_NS_INIT; in adjust_lapic_timer_advance()
1599 apic->lapic_timer.timer_advance_ns = timer_advance_ns; in adjust_lapic_timer_advance()
1631 vcpu->arch.apic->lapic_timer.timer_advance_ns && in kvm_wait_lapic_expire()
1676 vcpu->arch.apic->lapic_timer.timer_advance_ns) in apic_timer_expired()
1711 likely(ns > apic->lapic_timer.timer_advance_ns)) { in start_sw_tscdeadline()
1713 expire = ktime_sub_ns(expire, ktimer->timer_advance_ns); in start_sw_tscdeadline()
2452 int kvm_create_lapic(struct kvm_vcpu *vcpu, int timer_advance_ns) in kvm_create_lapic() argument
2475 if (timer_advance_ns == -1) { in kvm_create_lapic()
2476 apic->lapic_timer.timer_advance_ns = LAPIC_TIMER_ADVANCE_NS_INIT; in kvm_create_lapic()
2479 apic->lapic_timer.timer_advance_ns = timer_advance_ns; in kvm_create_lapic()