]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpufeatures: Enumerate ENQCMD and ENQCMDS instructions
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 15 Sep 2020 16:30:08 +0000 (09:30 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 17 Sep 2020 18:03:54 +0000 (20:03 +0200)
commitfb6e288762972a01c872691283805f7ea2fbfcc1
tree8c6817d993966cc57c5c545c625c75c179dd8cbf
parent52ab25abd5d850df5e6859559beecc828715809d
x86/cpufeatures: Enumerate ENQCMD and ENQCMDS instructions

Work submission instruction comes in two flavors. ENQCMD can be called
both in ring 3 and ring 0 and always uses the contents of a PASID MSR
when shipping the command to the device. ENQCMDS allows a kernel driver
to submit commands on behalf of a user process. The driver supplies the
PASID value in ENQCMDS. There isn't any usage of ENQCMD in the kernel as
of now.

The CPU feature flag is shown as "enqcmd" in /proc/cpuinfo.

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-5-git-send-email-fenghua.yu@intel.com
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/cpuid-deps.c