x86/cpufeatures: Re-enable ENQCMD
authorFenghua Yu <fenghua.yu@intel.com>
Mon, 7 Feb 2022 23:02:52 +0000 (15:02 -0800)
committerBorislav Petkov <bp@suse.de>
Tue, 15 Feb 2022 10:31:43 +0000 (11:31 +0100)
commit7c1ef59145f1c8bf9a2cc7a6ebf2fd56bbb440de
treed2e947ed18a45d654a0d04f08e36ae8e80a2880c
parentfa6af69f38d3f409bedc55d0112eec36ed526d4b
x86/cpufeatures: Re-enable ENQCMD

The ENQCMD feature can only be used if CONFIG_INTEL_IOMMU_SVM is set.
Add X86_FEATURE_ENQCMD to the disabled features mask as appropriate so
that cpu_feature_enabled() can be used to check the feature.

  [ bp: Massage commit message. ]

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>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220207230254.3342514-10-fenghua.yu@intel.com
arch/x86/include/asm/disabled-features.h