lapic_timer 89 arch/x86/kvm/cpuid.c apic->lapic_timer.timer_mode_mask = 3 << 17; lapic_timer 91 arch/x86/kvm/cpuid.c apic->lapic_timer.timer_mode_mask = 1 << 17; lapic_timer 14 arch/x86/kvm/debugfs.c *val = vcpu->arch.apic->lapic_timer.timer_advance_ns; lapic_timer 307 arch/x86/kvm/lapic.c return apic->lapic_timer.timer_mode == APIC_LVT_TIMER_ONESHOT; lapic_timer 312 arch/x86/kvm/lapic.c return apic->lapic_timer.timer_mode == APIC_LVT_TIMER_PERIODIC; lapic_timer 317 arch/x86/kvm/lapic.c return apic->lapic_timer.timer_mode == APIC_LVT_TIMER_TSCDEADLINE; lapic_timer 1229 arch/x86/kvm/lapic.c apic->lapic_timer.period == 0) lapic_timer 1233 arch/x86/kvm/lapic.c remaining = ktime_sub(apic->lapic_timer.target_expiration, now); lapic_timer 1237 arch/x86/kvm/lapic.c ns = mod_64(ktime_to_ns(remaining), apic->lapic_timer.period); lapic_timer 1403 arch/x86/kvm/lapic.c if (apic_lvtt_period(apic) && apic->lapic_timer.period) { lapic_timer 1406 arch/x86/kvm/lapic.c if (apic->lapic_timer.period < min_period) { lapic_timer 1411 arch/x86/kvm/lapic.c apic->lapic_timer.period, min_period); lapic_timer 1412 arch/x86/kvm/lapic.c apic->lapic_timer.period = min_period; lapic_timer 1420 arch/x86/kvm/lapic.c apic->lapic_timer.timer_mode_mask; lapic_timer 1422 arch/x86/kvm/lapic.c if (apic->lapic_timer.timer_mode != timer_mode) { lapic_timer 1425 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->lapic_timer.timer); lapic_timer 1427 arch/x86/kvm/lapic.c apic->lapic_timer.period = 0; lapic_timer 1428 arch/x86/kvm/lapic.c apic->lapic_timer.tscdeadline = 0; lapic_timer 1430 arch/x86/kvm/lapic.c apic->lapic_timer.timer_mode = timer_mode; lapic_timer 1460 arch/x86/kvm/lapic.c u64 timer_advance_ns = vcpu->arch.apic->lapic_timer.timer_advance_ns; lapic_timer 1482 arch/x86/kvm/lapic.c u32 timer_advance_ns = apic->lapic_timer.timer_advance_ns; lapic_timer 1504 arch/x86/kvm/lapic.c apic->lapic_timer.timer_advance_ns = timer_advance_ns; lapic_timer 1512 arch/x86/kvm/lapic.c if (apic->lapic_timer.expired_tscdeadline == 0) lapic_timer 1515 arch/x86/kvm/lapic.c tsc_deadline = apic->lapic_timer.expired_tscdeadline; lapic_timer 1516 arch/x86/kvm/lapic.c apic->lapic_timer.expired_tscdeadline = 0; lapic_timer 1518 arch/x86/kvm/lapic.c apic->lapic_timer.advance_expire_delta = guest_tsc - tsc_deadline; lapic_timer 1524 arch/x86/kvm/lapic.c adjust_lapic_timer_advance(vcpu, apic->lapic_timer.advance_expire_delta); lapic_timer 1536 arch/x86/kvm/lapic.c struct kvm_timer *ktimer = &apic->lapic_timer; lapic_timer 1550 arch/x86/kvm/lapic.c struct kvm_timer *ktimer = &apic->lapic_timer; lapic_timer 1552 arch/x86/kvm/lapic.c if (atomic_read(&apic->lapic_timer.pending)) lapic_timer 1559 arch/x86/kvm/lapic.c if (apic->lapic_timer.timer_advance_ns) lapic_timer 1565 arch/x86/kvm/lapic.c atomic_inc(&apic->lapic_timer.pending); lapic_timer 1571 arch/x86/kvm/lapic.c struct kvm_timer *ktimer = &apic->lapic_timer; lapic_timer 1592 arch/x86/kvm/lapic.c likely(ns > apic->lapic_timer.timer_advance_ns)) { lapic_timer 1607 arch/x86/kvm/lapic.c apic->lapic_timer.period = (u64)kvm_lapic_get_reg(apic, APIC_TMICT) lapic_timer 1612 arch/x86/kvm/lapic.c remaining = ktime_sub(apic->lapic_timer.target_expiration, now); lapic_timer 1620 arch/x86/kvm/lapic.c apic->lapic_timer.tscdeadline += lapic_timer 1623 arch/x86/kvm/lapic.c apic->lapic_timer.target_expiration = ktime_add_ns(now, ns_remaining_new); lapic_timer 1632 arch/x86/kvm/lapic.c apic->lapic_timer.period = (u64)kvm_lapic_get_reg(apic, APIC_TMICT) lapic_timer 1635 arch/x86/kvm/lapic.c if (!apic->lapic_timer.period) { lapic_timer 1636 arch/x86/kvm/lapic.c apic->lapic_timer.tscdeadline = 0; lapic_timer 1642 arch/x86/kvm/lapic.c apic->lapic_timer.tscdeadline = kvm_read_l1_tsc(apic->vcpu, tscl) + lapic_timer 1643 arch/x86/kvm/lapic.c nsec_to_cycles(apic->vcpu, apic->lapic_timer.period); lapic_timer 1644 arch/x86/kvm/lapic.c apic->lapic_timer.target_expiration = ktime_add_ns(now, apic->lapic_timer.period); lapic_timer 1662 arch/x86/kvm/lapic.c apic->lapic_timer.target_expiration = lapic_timer 1663 arch/x86/kvm/lapic.c ktime_add_ns(apic->lapic_timer.target_expiration, lapic_timer 1664 arch/x86/kvm/lapic.c apic->lapic_timer.period); lapic_timer 1665 arch/x86/kvm/lapic.c delta = ktime_sub(apic->lapic_timer.target_expiration, now); lapic_timer 1666 arch/x86/kvm/lapic.c apic->lapic_timer.tscdeadline = kvm_read_l1_tsc(apic->vcpu, tscl) + lapic_timer 1672 arch/x86/kvm/lapic.c if (!apic->lapic_timer.period) lapic_timer 1676 arch/x86/kvm/lapic.c apic->lapic_timer.target_expiration)) { lapic_timer 1685 arch/x86/kvm/lapic.c hrtimer_start(&apic->lapic_timer.timer, lapic_timer 1686 arch/x86/kvm/lapic.c apic->lapic_timer.target_expiration, lapic_timer 1695 arch/x86/kvm/lapic.c return vcpu->arch.apic->lapic_timer.hv_timer_in_use; lapic_timer 1702 arch/x86/kvm/lapic.c WARN_ON(!apic->lapic_timer.hv_timer_in_use); lapic_timer 1704 arch/x86/kvm/lapic.c apic->lapic_timer.hv_timer_in_use = false; lapic_timer 1709 arch/x86/kvm/lapic.c struct kvm_timer *ktimer = &apic->lapic_timer; lapic_timer 1751 arch/x86/kvm/lapic.c struct kvm_timer *ktimer = &apic->lapic_timer; lapic_timer 1754 arch/x86/kvm/lapic.c if (apic->lapic_timer.hv_timer_in_use) lapic_timer 1770 arch/x86/kvm/lapic.c if (!apic_lvtt_period(apic) && atomic_read(&apic->lapic_timer.pending)) lapic_timer 1785 arch/x86/kvm/lapic.c if (!apic->lapic_timer.hv_timer_in_use) lapic_timer 1791 arch/x86/kvm/lapic.c if (apic_lvtt_period(apic) && apic->lapic_timer.period) { lapic_timer 1812 arch/x86/kvm/lapic.c if (apic->lapic_timer.hv_timer_in_use) lapic_timer 1822 arch/x86/kvm/lapic.c WARN_ON(!apic->lapic_timer.hv_timer_in_use); lapic_timer 1828 arch/x86/kvm/lapic.c atomic_set(&apic->lapic_timer.pending, 0); lapic_timer 1904 arch/x86/kvm/lapic.c atomic_set(&apic->lapic_timer.pending, 0); lapic_timer 1946 arch/x86/kvm/lapic.c val &= (apic_lvt_mask[0] | apic->lapic_timer.timer_mode_mask); lapic_timer 1955 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->lapic_timer.timer); lapic_timer 1966 arch/x86/kvm/lapic.c apic->lapic_timer.period) { lapic_timer 1967 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->lapic_timer.timer); lapic_timer 2054 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->lapic_timer.timer); lapic_timer 2081 arch/x86/kvm/lapic.c return apic->lapic_timer.tscdeadline; lapic_timer 2092 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->lapic_timer.timer); lapic_timer 2093 arch/x86/kvm/lapic.c apic->lapic_timer.tscdeadline = data; lapic_timer 2164 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->lapic_timer.timer); lapic_timer 2201 arch/x86/kvm/lapic.c atomic_set(&apic->lapic_timer.pending, 0); lapic_timer 2233 arch/x86/kvm/lapic.c return atomic_read(&apic->lapic_timer.pending); lapic_timer 2269 arch/x86/kvm/lapic.c struct kvm_lapic *apic = container_of(ktimer, struct kvm_lapic, lapic_timer); lapic_timer 2301 arch/x86/kvm/lapic.c hrtimer_init(&apic->lapic_timer.timer, CLOCK_MONOTONIC, lapic_timer 2303 arch/x86/kvm/lapic.c apic->lapic_timer.timer.function = apic_timer_fn; lapic_timer 2305 arch/x86/kvm/lapic.c apic->lapic_timer.timer_advance_ns = LAPIC_TIMER_ADVANCE_NS_INIT; lapic_timer 2308 arch/x86/kvm/lapic.c apic->lapic_timer.timer_advance_ns = timer_advance_ns; lapic_timer 2357 arch/x86/kvm/lapic.c if (atomic_read(&apic->lapic_timer.pending) > 0) { lapic_timer 2359 arch/x86/kvm/lapic.c atomic_set(&apic->lapic_timer.pending, 0); lapic_timer 2451 arch/x86/kvm/lapic.c hrtimer_cancel(&apic->lapic_timer.timer); lapic_timer 2484 arch/x86/kvm/lapic.c timer = &vcpu->arch.apic->lapic_timer.timer; lapic_timer 43 arch/x86/kvm/lapic.h struct kvm_timer lapic_timer; lapic_timer 5691 arch/x86/kvm/svm.c vcpu->arch.apic->lapic_timer.timer_advance_ns) lapic_timer 6542 arch/x86/kvm/vmx/vmx.c vcpu->arch.apic->lapic_timer.timer_advance_ns) lapic_timer 7206 arch/x86/kvm/vmx/vmx.c struct kvm_timer *ktimer = &vcpu->arch.apic->lapic_timer; lapic_timer 8302 arch/x86/kvm/x86.c s64 delta = vcpu->arch.apic->lapic_timer.advance_expire_delta; lapic_timer 8305 arch/x86/kvm/x86.c vcpu->arch.apic->lapic_timer.advance_expire_delta = S64_MIN;