Lines Matching refs:delta_tsc
6998 u32 delta_tsc; in vmx_update_hv_timer() local
7007 delta_tsc = (u32)((vmx->hv_deadline_tsc - tscl) >> in vmx_update_hv_timer()
7010 delta_tsc = 0; in vmx_update_hv_timer()
7012 vmcs_write32(VMX_PREEMPTION_TIMER_VALUE, delta_tsc); in vmx_update_hv_timer()
7828 u64 tscl, guest_tscl, delta_tsc, lapic_timer_advance_cycles; in vmx_set_hv_timer() local
7834 delta_tsc = max(guest_deadline_tsc, guest_tscl) - guest_tscl; in vmx_set_hv_timer()
7838 if (delta_tsc > lapic_timer_advance_cycles) in vmx_set_hv_timer()
7839 delta_tsc -= lapic_timer_advance_cycles; in vmx_set_hv_timer()
7841 delta_tsc = 0; in vmx_set_hv_timer()
7845 delta_tsc && u64_shl_div_u64(delta_tsc, in vmx_set_hv_timer()
7847 vcpu->arch.l1_tsc_scaling_ratio, &delta_tsc)) in vmx_set_hv_timer()
7856 if (delta_tsc >> (cpu_preemption_timer_multi + 32)) in vmx_set_hv_timer()
7859 vmx->hv_deadline_tsc = tscl + delta_tsc; in vmx_set_hv_timer()
7860 *expired = !delta_tsc; in vmx_set_hv_timer()