Re: [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

From: Paolo Bonzini
Date: Fri Sep 02 2016 - 09:49:08 EST




On 02/09/2016 15:31, Roman Kagan wrote:
> >
> > - if (!vcpu->pv_time_enabled)
> > - return 0;
>
> Strictly speaking, you only need .hv_clock updated if either kvmclock or
> tsc_ref_page is enabled, so you may want to still skip the calculations
> otherwise.

Yeah, but that's really a rare case so I don't think it's worth it...

Paolo