Lines Matching refs:tsc_timestamp
2815 static inline u64 vgettsc(struct pvclock_clock *clock, u64 *tsc_timestamp,
2824 tsc_timestamp, &tsc_pg_val)) {
2836 *tsc_timestamp = read_tsc();
2837 v = (*tsc_timestamp - clock->cycle_last) &
2845 *tsc_timestamp = v = 0;
2850 static int do_monotonic_raw(s64 *t, u64 *tsc_timestamp)
2860 ns += vgettsc(>od->raw_clock, tsc_timestamp, &mode);
2869 static int do_realtime(struct timespec64 *ts, u64 *tsc_timestamp)
2880 ns += vgettsc(>od->clock, tsc_timestamp, &mode);
2891 static bool kvm_get_time_and_clockread(s64 *kernel_ns, u64 *tsc_timestamp)
2898 tsc_timestamp));
2903 u64 *tsc_timestamp)
2909 return gtod_is_based_on_tsc(do_realtime(ts, tsc_timestamp));
2946 * system_timestamp/tsc_timestamp values simultaneously: use a master
3068 hv_clock.tsc_timestamp = ka->master_cycle_now;
3156 u64 tsc_timestamp, host_tsc;
3189 tsc_timestamp = kvm_read_l1_tsc(v, host_tsc);
3203 if (tsc > tsc_timestamp) {
3204 adjust_tsc_offset_guest(v, tsc - tsc_timestamp);
3205 tsc_timestamp = tsc;
3225 vcpu->hv_clock.tsc_timestamp = tsc_timestamp;
3227 vcpu->last_guest_tsc = tsc_timestamp;
3742 /* Before back to guest, tsc_timestamp must be adjusted