Lines Matching refs:this_tsc_khz
988 static void kvm_set_tsc_khz(struct kvm_vcpu *vcpu, u32 this_tsc_khz) in kvm_set_tsc_khz() argument
994 kvm_get_time_scale(this_tsc_khz, NSEC_PER_SEC / 1000, in kvm_set_tsc_khz()
997 vcpu->arch.virtual_tsc_khz = this_tsc_khz; in kvm_set_tsc_khz()
1007 if (this_tsc_khz < thresh_lo || this_tsc_khz > thresh_hi) { in kvm_set_tsc_khz()
1008 …pr_debug("kvm: requested TSC rate %u falls outside tolerance [%u,%u]\n", this_tsc_khz, thresh_lo, … in kvm_set_tsc_khz()
1011 kvm_x86_ops->set_tsc_khz(vcpu, this_tsc_khz, use_scaling); in kvm_set_tsc_khz()
1116 unsigned long this_tsc_khz; in kvm_guest_time_update() local
1124 this_tsc_khz = __get_cpu_var(cpu_tsc_khz); in kvm_guest_time_update()
1125 if (unlikely(this_tsc_khz == 0)) { in kvm_guest_time_update()
1185 if (unlikely(vcpu->hw_tsc_khz != this_tsc_khz)) { in kvm_guest_time_update()
1186 kvm_get_time_scale(NSEC_PER_SEC / 1000, this_tsc_khz, in kvm_guest_time_update()
1189 vcpu->hw_tsc_khz = this_tsc_khz; in kvm_guest_time_update()