diff options
| author | Fenghua Yu <[email protected]> | 2022-02-07 23:02:53 +0000 |
|---|---|---|
| committer | Borislav Petkov <[email protected]> | 2022-02-15 10:31:43 +0000 |
| commit | 6e3133d901e89a4ba83ce7ebd8c27bbeaa9ed1f2 (patch) | |
| tree | fe10c679b2e6c8062be0f22219168b1a51760a71 /drivers/acpi/cppc_acpi.c | |
| parent | x86/cpufeatures: Re-enable ENQCMD (diff) | |
| download | kernel-6e3133d901e89a4ba83ce7ebd8c27bbeaa9ed1f2.tar.gz kernel-6e3133d901e89a4ba83ce7ebd8c27bbeaa9ed1f2.zip | |
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 <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Reviewed-by: Tony Luck <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
