Searched refs:gtod (Results 1 – 4 of 4) sorted by relevance
/arch/s390/kvm/ |
D | kvm-s390.c | 1089 struct kvm_s390_vm_tod_clock gtod; in kvm_s390_set_tod_ext() local 1091 if (copy_from_user(>od, (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, >od); 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(>od.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, >od); 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 …]
|
D | priv.c | 88 struct kvm_s390_vm_tod_clock gtod = { 0 }; in handle_set_clock() local 101 rc = read_guest(vcpu, op2, ar, >od.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, >od); in handle_set_clock()
|
D | kvm-s390.h | 285 const struct kvm_s390_vm_tod_clock *gtod);
|
/arch/x86/kvm/ |
D | x86.c | 1866 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 …]
|