Searched refs:this_tsc_khz (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/arch/x86/kvm/
H A Dx86.c1292 static int kvm_set_tsc_khz(struct kvm_vcpu *vcpu, u32 this_tsc_khz) kvm_set_tsc_khz() argument
1298 if (this_tsc_khz == 0) { kvm_set_tsc_khz()
1305 kvm_get_time_scale(this_tsc_khz, NSEC_PER_SEC / 1000, kvm_set_tsc_khz()
1308 vcpu->arch.virtual_tsc_khz = this_tsc_khz; kvm_set_tsc_khz()
1318 if (this_tsc_khz < thresh_lo || this_tsc_khz > thresh_hi) { kvm_set_tsc_khz()
1319 pr_debug("kvm: requested TSC rate %u falls outside tolerance [%u,%u]\n", this_tsc_khz, thresh_lo, thresh_hi); kvm_set_tsc_khz()
1322 return set_tsc_khz(vcpu, this_tsc_khz, use_scaling); kvm_set_tsc_khz()
1710 unsigned long flags, this_tsc_khz, tgt_tsc_khz; kvm_guest_time_update() local
1736 this_tsc_khz = __this_cpu_read(cpu_tsc_khz); kvm_guest_time_update()
1737 if (unlikely(this_tsc_khz == 0)) { kvm_guest_time_update()
1772 if (unlikely(vcpu->hw_tsc_khz != this_tsc_khz)) { kvm_guest_time_update()
1774 vcpu->virtual_tsc_khz : this_tsc_khz; kvm_guest_time_update()
1778 vcpu->hw_tsc_khz = this_tsc_khz; kvm_guest_time_update()
H A Dlapic.c1312 unsigned long this_tsc_khz = vcpu->arch.virtual_tsc_khz; start_apic_timer() local
1315 if (unlikely(!tscdeadline || !this_tsc_khz)) start_apic_timer()
1324 do_div(ns, this_tsc_khz); start_apic_timer()

Completed in 114 milliseconds