OSDN Git Service

x86/fpu/xstate: Add supervisor PASID state for ENQCMD
authorYu-cheng Yu <yu-cheng.yu@intel.com>
Tue, 15 Sep 2020 16:30:09 +0000 (09:30 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 17 Sep 2020 18:22:10 +0000 (20:22 +0200)
commitb454feb9abc1a9ee876fb84bfea0fc8d726f5bc4
treee4be19713b34b02b7b5dbd644f33b6fa0d3d213c
parentff4f82816dff28ffaaff96d1409bb3811d345514
x86/fpu/xstate: Add supervisor PASID state for ENQCMD

The ENQCMD instruction reads a PASID from the IA32_PASID MSR. The
MSR is stored in the task's supervisor XSAVE* PASID state and is
context-switched by XSAVES/XRSTORS.

 [ bp: Add (in-)definite articles and massage. ]

Signed-off-by: Yu-cheng Yu <yu-cheng.yu@intel.com>
Co-developed-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/1600187413-163670-6-git-send-email-fenghua.yu@intel.com
arch/x86/include/asm/fpu/types.h
arch/x86/include/asm/fpu/xstate.h
arch/x86/kernel/fpu/xstate.c