Lines Matching refs:tsc_timestamp
2018 static inline u64 vgettsc(u64 *tsc_timestamp, int *mode) in vgettsc() argument
2027 tsc_timestamp); in vgettsc()
2040 *tsc_timestamp = read_tsc(); in vgettsc()
2041 v = (*tsc_timestamp - gtod->clock.cycle_last) & in vgettsc()
2049 *tsc_timestamp = v = 0; in vgettsc()
2054 static int do_monotonic_boot(s64 *t, u64 *tsc_timestamp) in do_monotonic_boot() argument
2064 ns += vgettsc(tsc_timestamp, &mode); in do_monotonic_boot()
2073 static int do_realtime(struct timespec64 *ts, u64 *tsc_timestamp) in do_realtime() argument
2084 ns += vgettsc(tsc_timestamp, &mode); in do_realtime()
2095 static bool kvm_get_time_and_clockread(s64 *kernel_ns, u64 *tsc_timestamp) in kvm_get_time_and_clockread() argument
2102 tsc_timestamp)); in kvm_get_time_and_clockread()
2107 u64 *tsc_timestamp) in kvm_get_walltime_and_clockread() argument
2113 return gtod_is_based_on_tsc(do_realtime(ts, tsc_timestamp)); in kvm_get_walltime_and_clockread()
2229 hv_clock.tsc_timestamp = ka->master_cycle_now; in get_kvmclock_ns()
2312 u64 tsc_timestamp, host_tsc; in kvm_guest_time_update() local
2344 tsc_timestamp = kvm_read_l1_tsc(v, host_tsc); in kvm_guest_time_update()
2358 if (tsc > tsc_timestamp) { in kvm_guest_time_update()
2359 adjust_tsc_offset_guest(v, tsc - tsc_timestamp); in kvm_guest_time_update()
2360 tsc_timestamp = tsc; in kvm_guest_time_update()
2378 vcpu->hv_clock.tsc_timestamp = tsc_timestamp; in kvm_guest_time_update()
2380 vcpu->last_guest_tsc = tsc_timestamp; in kvm_guest_time_update()