lkml.org 
[lkml]   [2021]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 04/12] KVM: X86: Add a ratio parameter to kvm_scale_tsc()
From
Date
On 24/05/21 17:48, Sean Christopherson wrote:
>
> if (msr_info->host_initiated) {
> offset = vcpu->arch.l1_tsc_offset;
> ratio = vcpu->arch.l1_tsc_scaling_ratio;
> } else {
> offset = vcpu->arch.tsc_offset;
> ratio = vcpu->arch.tsc_scaling_ratio;
> }
> msr_info->data = kvm_scale_tsc(vcpu, rdtsc(), ratio) + offset;

Looks good, indeed I didn't do this just out of laziness really (and
instead got a typo).

Paolo

\
 
 \ /
  Last update: 2021-05-24 18:31    [W:0.061 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site