Author: kib
Date: Wed May 27 18:24:50 2020
New Revision: 361558
URL: https://svnweb.freebsd.org/changeset/base/361558

Log:
  MFC r361299:
  Do not consider CAP_RDCL_NO as an indicator for all MDS vulnerabilities
  handled by hardware.

Modified:
  stable/11/sys/x86/x86/cpu_machdep.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/x86/x86/cpu_machdep.c
==============================================================================
--- stable/11/sys/x86/x86/cpu_machdep.c Wed May 27 18:23:14 2020        
(r361557)
+++ stable/11/sys/x86/x86/cpu_machdep.c Wed May 27 18:24:50 2020        
(r361558)
@@ -1049,11 +1049,11 @@ hw_mds_recalculate(void)
         * reported.  For instance, hypervisor might unknowingly
         * filter the cap out.
         * For the similar reasons, and for testing, allow to enable
-        * mitigation even for RDCL_NO or MDS_NO caps.
+        * mitigation even when MDS_NO cap is set.
         */
        if (cpu_vendor_id != CPU_VENDOR_INTEL || hw_mds_disable == 0 ||
-           ((cpu_ia32_arch_caps & (IA32_ARCH_CAP_RDCL_NO |
-           IA32_ARCH_CAP_MDS_NO)) != 0 && hw_mds_disable == 3)) {
+           ((cpu_ia32_arch_caps & IA32_ARCH_CAP_MDS_NO) != 0 &&
+           hw_mds_disable == 3)) {
                mds_handler = mds_handler_void;
        } else if (((cpu_stdext_feature3 & CPUID_STDEXT3_MD_CLEAR) != 0 &&
            hw_mds_disable == 3) || hw_mds_disable == 1) {
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to