lkml.org 
[lkml]   [2023]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v7 07/26] x86/fpu/xstate: Warn if kernel dynamic xfeatures detected in normal fpstate
    From
    On 11/28/2023 11:25 PM, Edgecombe, Rick P wrote:
    > On Fri, 2023-11-24 at 00:53 -0500, Yang Weijiang wrote:
    >> Kernel dynamic xfeatures now are __ONLY__ enabled for guest fpstate,
    >> i.e.,
    >> none for normal kernel fpstate. The bits are added when guest FPU
    > ^never?

    Sure, will change it, thank you!

    >> config
    >> is initialized. Guest fpstate is allocated with fpstate->is_guest set
    >> to
    >> %true.
    >>
    >> For normal fpstate, the bits should have been removed when
    >> initializes
    >> kernel FPU config settings, WARN_ONCE() if kernel detects normal
    >> fpstate
    >> xfeatures contains kernel dynamic xfeatures before executes xsaves.
    >>
    >> Signed-off-by: Yang Weijiang <weijiang.yang@intel.com>
    > Otherwise...
    >
    > Reviewed-by: Rick Edgecombe <rick.p.edgecombe@intel.com>

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