Lines Matching refs:timer_advance_ns
1461 u64 timer_advance_ns = vcpu->arch.apic->lapic_timer.timer_advance_ns; in __wait_lapic_expire() local
1471 nsec_to_cycles(vcpu, timer_advance_ns))); in __wait_lapic_expire()
1475 ndelay(min_t(u32, delay_ns, timer_advance_ns)); in __wait_lapic_expire()
1483 u32 timer_advance_ns = apic->lapic_timer.timer_advance_ns; in adjust_lapic_timer_advance() local
1495 timer_advance_ns -= ns/LAPIC_TIMER_ADVANCE_ADJUST_STEP; in adjust_lapic_timer_advance()
1500 timer_advance_ns += ns/LAPIC_TIMER_ADVANCE_ADJUST_STEP; in adjust_lapic_timer_advance()
1503 if (unlikely(timer_advance_ns > LAPIC_TIMER_ADVANCE_NS_MAX)) in adjust_lapic_timer_advance()
1504 timer_advance_ns = LAPIC_TIMER_ADVANCE_NS_INIT; in adjust_lapic_timer_advance()
1505 apic->lapic_timer.timer_advance_ns = timer_advance_ns; in adjust_lapic_timer_advance()
1560 if (apic->lapic_timer.timer_advance_ns) in apic_timer_expired()
1593 likely(ns > apic->lapic_timer.timer_advance_ns)) { in start_sw_tscdeadline()
1595 expire = ktime_sub_ns(expire, ktimer->timer_advance_ns); in start_sw_tscdeadline()
2277 int kvm_create_lapic(struct kvm_vcpu *vcpu, int timer_advance_ns) in kvm_create_lapic() argument
2300 if (timer_advance_ns == -1) { in kvm_create_lapic()
2301 apic->lapic_timer.timer_advance_ns = LAPIC_TIMER_ADVANCE_NS_INIT; in kvm_create_lapic()
2304 apic->lapic_timer.timer_advance_ns = timer_advance_ns; in kvm_create_lapic()