• Linus Torvalds's avatar
    Merge tag 'x86-fpu-2020-06-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0a319ef7
    Linus Torvalds authored
    Pull x86 FPU updates from Ingo Molnar:
     "Most of the changes here related to 'XSAVES supervisor state' support,
      which is a feature that allows kernel-only data to be automatically
      saved/restored by the FPU context switching code.
    
      CPU features that can be supported this way are Intel PT, 'PASID' and
      CET features"
    
    * tag 'x86-fpu-2020-06-01' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/fpu/xstate: Restore supervisor states for signal return
      x86/fpu/xstate: Preserve supervisor states for the slow path in __fpu__restore_sig()
      x86/fpu: Introduce copy_supervisor_to_kernel()
      x86/fpu/xstate: Update copy_kernel_to_xregs_err() for supervisor states
      x86/fpu/xstate: Update sanitize_restored_xstate() for supervisor xstates
      x86/fpu/xstate: Define new functions for clearing fpregs and xstates
      x86/fpu/xstate: Introduce XSAVES supervisor states
      x86/fpu/xstate: Separate user and supervisor xfeatures mask
      x86/fpu/xstate: Define new macros for supervisor and user xstates
      x86/fpu/xstate: Rename validate_xstate_header() to validate_user_xstate_header()
    0a319ef7
xstate.c 36.5 KB