Lines Matching refs:tsc_timestamp
2426 static inline u64 vgettsc(struct pvclock_clock *clock, u64 *tsc_timestamp,
2435 tsc_timestamp);
2448 *tsc_timestamp = read_tsc();
2449 v = (*tsc_timestamp - clock->cycle_last) &
2457 *tsc_timestamp = v = 0;
2462 static int do_monotonic_raw(s64 *t, u64 *tsc_timestamp)
2472 ns += vgettsc(>od->raw_clock, tsc_timestamp, &mode);
2481 static int do_realtime(struct timespec64 *ts, u64 *tsc_timestamp)
2492 ns += vgettsc(>od->clock, tsc_timestamp, &mode);
2503 static bool kvm_get_time_and_clockread(s64 *kernel_ns, u64 *tsc_timestamp)
2510 tsc_timestamp));
2515 u64 *tsc_timestamp)
2521 return gtod_is_based_on_tsc(do_realtime(ts, tsc_timestamp));
2558 * system_timestamp/tsc_timestamp values simultaneously: use a master
2637 hv_clock.tsc_timestamp = ka->master_cycle_now;
2720 u64 tsc_timestamp, host_tsc;
2752 tsc_timestamp = kvm_read_l1_tsc(v, host_tsc);
2766 if (tsc > tsc_timestamp) {
2767 adjust_tsc_offset_guest(v, tsc - tsc_timestamp);
2768 tsc_timestamp = tsc;
2786 vcpu->hv_clock.tsc_timestamp = tsc_timestamp;
2788 vcpu->last_guest_tsc = tsc_timestamp;
3214 /* Before back to guest, tsc_timestamp must be adjusted