summaryrefslogtreecommitdiff
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorFenghua Yu <fenghua.yu@intel.com>2022-02-07 15:02:53 -0800
committerBorislav Petkov <bp@suse.de>2022-02-15 11:31:43 +0100
commit6e3133d901e89a4ba83ce7ebd8c27bbeaa9ed1f2 (patch)
treefe10c679b2e6c8062be0f22219168b1a51760a71 /include/linux/sched.h
parent7c1ef59145f1c8bf9a2cc7a6ebf2fd56bbb440de (diff)
tools/objtool: Check for use of the ENQCMD instruction in the kernel
The ENQCMD instruction implicitly accesses the PASID_MSR to fill in the pasid field of the descriptor being submitted to an accelerator. But there is no precise (and stable across kernel changes) point at which the PASID_MSR is updated from the value for one task to the next. Kernel code that uses accelerators must always use the ENQCMDS instruction which does not access the PASID_MSR. Check for use of the ENQCMD instruction in the kernel and warn on its usage. 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> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220207230254.3342514-11-fenghua.yu@intel.com
Diffstat (limited to 'include/linux/sched.h')
0 files changed, 0 insertions, 0 deletions