Re: [PATCH v4 11/30] KVM: x86: Move kvm_{load,put}_guest_fpu() to fpu.h
From: Sean Christopherson
Date: Mon Jun 15 2026 - 12:31:49 EST
On Mon, Jun 15, 2026, Binbin Wu wrote:
> On 6/13/2026 8:03 AM, Sean Christopherson wrote:
> > Move the kvm_{load,put}_guest_fpu() helpers to fpu.h in anticipation of
> > moving the bulk of KVM's register specific code out of x86.c.
>
> Nit:
> I think patch 4 did the moving, so it's not "in anticipation of" anymore?
Oh, nice catch. It's a typo, it should be MSR, not register. I'll change to
this:
Move the kvm_{load,put}_guest_fpu() helpers to fpu.h in anticipation of
moving the bulk of KVM's MSR specific code out of x86.c (KVM needs to load
and put the FPU when accessing MSRs that are managed via XSTATE, a.k.a. the
so called "FPU").