Lines Matching refs:tsc_timestamp
1747 static inline u64 vgettsc(u64 *tsc_timestamp, int *mode) in vgettsc() argument
1756 tsc_timestamp); in vgettsc()
1769 *tsc_timestamp = read_tsc(); in vgettsc()
1770 v = (*tsc_timestamp - gtod->clock.cycle_last) & in vgettsc()
1778 *tsc_timestamp = v = 0; in vgettsc()
1783 static int do_monotonic_boot(s64 *t, u64 *tsc_timestamp) in do_monotonic_boot() argument
1793 ns += vgettsc(tsc_timestamp, &mode); in do_monotonic_boot()
1802 static int do_realtime(struct timespec64 *ts, u64 *tsc_timestamp) in do_realtime() argument
1813 ns += vgettsc(tsc_timestamp, &mode); in do_realtime()
1824 static bool kvm_get_time_and_clockread(s64 *kernel_ns, u64 *tsc_timestamp) in kvm_get_time_and_clockread() argument
1831 tsc_timestamp)); in kvm_get_time_and_clockread()
1836 u64 *tsc_timestamp) in kvm_get_walltime_and_clockread() argument
1842 return gtod_is_based_on_tsc(do_realtime(ts, tsc_timestamp)); in kvm_get_walltime_and_clockread()
1958 hv_clock.tsc_timestamp = ka->master_cycle_now; in get_kvmclock_ns()
2041 u64 tsc_timestamp, host_tsc; in kvm_guest_time_update() local
2073 tsc_timestamp = kvm_read_l1_tsc(v, host_tsc); in kvm_guest_time_update()
2087 if (tsc > tsc_timestamp) { in kvm_guest_time_update()
2088 adjust_tsc_offset_guest(v, tsc - tsc_timestamp); in kvm_guest_time_update()
2089 tsc_timestamp = tsc; in kvm_guest_time_update()
2107 vcpu->hv_clock.tsc_timestamp = tsc_timestamp; in kvm_guest_time_update()
2109 vcpu->last_guest_tsc = tsc_timestamp; in kvm_guest_time_update()