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)
commit1478b99a76534b6c244cfe24fa616280a9441118
treec44a7227124d4aa5835a167b5bc13763e94b3212
parent52ad9bc64c74167466e70e0df4b99ee5ccef0078
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