Re: [PATCH v3 25/40] KVM: x86: Expose several TSC helpers via x86.h for use by MSR code

From: Huang, Kai

Date: Thu Jun 04 2026 - 08:05:29 EST


On Fri, 2026-05-29 at 15:22 -0700, Sean Christopherson wrote:
> Begrudgingly move adjust_tsc_offset_{guest,host}() to x86.h as inlines,
> and expose several other TSC helpers in anticipation of moving KVM's MSR
> code to a dedicated msrs.c. Unfortunately for KVM, several MSRs that KVM
> emulates can affect TSC state.
>
> Opportunistically drop a superfluous local "tsc_offset" variable, whose
> existence causes checkpatch to complain about lack of a blank line.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
>

Reviewed-by: Kai Huang <kai.huang@xxxxxxxxx>