lkml.org 
[lkml]   [2023]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v6 14/25] KVM: x86: Load guest FPU state when access XSAVE-managed MSRs
From
On Fri, Nov 03, 2023, Weijiang Yang wrote:
> On 11/2/2023 2:05 AM, Sean Christopherson wrote:
> > /*
> > * Returns true if the MSR in question is managed via XSTATE, i.e. is context
> > * switched with the rest of guest FPU state.
> > */
> > static bool is_xstate_managed_msr(u32 index)
>
> How about is_xfeature_msr()? xfeature is XSAVE-Supported-Feature, just to align with SDM
> convention.

My vote remains for is_xstate_managed_msr(). is_xfeature_msr() could also refer
to MSRs that control XSTATE features, e.g. XSS.

\
 
 \ /
  Last update: 2023-11-20 13:47    [W:0.189 / U:1.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site