]> git.baikalelectronics.ru Git - kernel.git/commit
x86/cpufeatures: Mark ENQCMD as disabled when configured out
authorFenghua Yu <fenghua.yu@intel.com>
Tue, 15 Sep 2020 16:30:12 +0000 (09:30 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 17 Sep 2020 18:22:15 +0000 (20:22 +0200)
commit127eee6cd085ddbb2e76dc0172adabdf440bd4bc
treec44a7227124d4aa5835a167b5bc13763e94b3212
parent7e3f524322933734cf34b8a15f93920c1d4b8cb7
x86/cpufeatures: Mark ENQCMD as disabled when configured out

Currently, the ENQCMD feature depends on CONFIG_IOMMU_SUPPORT. Add
X86_FEATURE_ENQCMD to the disabled features mask so that it gets
disabled when the IOMMU config option above is not enabled.

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-9-git-send-email-fenghua.yu@intel.com
arch/x86/include/asm/disabled-features.h