Home
last modified time | relevance | path

Searched refs:gtod (Results 1 – 4 of 4) sorted by relevance

/arch/s390/kvm/
Dkvm-s390.c1089 struct kvm_s390_vm_tod_clock gtod; in kvm_s390_set_tod_ext() local
1091 if (copy_from_user(&gtod, (void __user *)attr->addr, sizeof(gtod))) in kvm_s390_set_tod_ext()
1094 if (!test_kvm_facility(kvm, 139) && gtod.epoch_idx) in kvm_s390_set_tod_ext()
1096 kvm_s390_set_tod_clock(kvm, &gtod); in kvm_s390_set_tod_ext()
1099 gtod.epoch_idx, gtod.tod); in kvm_s390_set_tod_ext()
1121 struct kvm_s390_vm_tod_clock gtod = { 0 }; in kvm_s390_set_tod_low() local
1123 if (copy_from_user(&gtod.tod, (void __user *)attr->addr, in kvm_s390_set_tod_low()
1124 sizeof(gtod.tod))) in kvm_s390_set_tod_low()
1127 kvm_s390_set_tod_clock(kvm, &gtod); in kvm_s390_set_tod_low()
1128 VM_EVENT(kvm, 3, "SET: TOD base: 0x%llx", gtod.tod); in kvm_s390_set_tod_low()
[all …]
Dpriv.c88 struct kvm_s390_vm_tod_clock gtod = { 0 }; in handle_set_clock() local
101 rc = read_guest(vcpu, op2, ar, &gtod.tod, sizeof(gtod.tod)); in handle_set_clock()
105 VCPU_EVENT(vcpu, 3, "SCK: setting guest TOD to 0x%llx", gtod.tod); in handle_set_clock()
106 kvm_s390_set_tod_clock(vcpu->kvm, &gtod); in handle_set_clock()
Dkvm-s390.h285 const struct kvm_s390_vm_tod_clock *gtod);
/arch/x86/kvm/
Dx86.c1866 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in kvm_track_tsc_matching() local
1880 (gtod_is_based_on_tsc(gtod->clock.vclock_mode) && vcpus_matched)) in kvm_track_tsc_matching()
1885 ka->use_master_clock, gtod->clock.vclock_mode); in kvm_track_tsc_matching()
2102 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in vgettsc() local
2105 switch (gtod->clock.vclock_mode) { in vgettsc()
2112 v = (tsc_pg_val - gtod->clock.cycle_last) & in vgettsc()
2113 gtod->clock.mask; in vgettsc()
2122 v = (*tsc_timestamp - gtod->clock.cycle_last) & in vgettsc()
2123 gtod->clock.mask; in vgettsc()
2132 return v * gtod->clock.mult; in vgettsc()
[all …]