Lines Matching refs:boot_cpu_has
226 if (boot_cpu_has(X86_FEATURE_VIRT_SSBD)) in x86_amd_ssb_disable()
228 else if (boot_cpu_has(X86_FEATURE_LS_CFG_SSBD)) in x86_amd_ssb_disable()
253 if (!boot_cpu_has(X86_FEATURE_MD_CLEAR)) in mds_select_mitigation()
258 if (!boot_cpu_has(X86_BUG_MSBDS_ONLY) && in mds_select_mitigation()
314 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation()
332 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation()
420 boot_cpu_has(X86_FEATURE_RTM))) in mmio_select_mitigation()
427 if (boot_cpu_has(X86_FEATURE_CLEAR_CPU_BUF)) in mmio_select_mitigation()
448 (boot_cpu_has(X86_FEATURE_MD_CLEAR) && in mmio_select_mitigation()
449 boot_cpu_has(X86_FEATURE_FLUSH_L1D) && in mmio_select_mitigation()
539 if (!boot_cpu_has(X86_FEATURE_CLEAR_CPU_BUF)) in md_clear_update_mitigation()
627 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in update_srbds_msr()
637 if (!boot_cpu_has(X86_FEATURE_SRBDS_CTRL)) in update_srbds_msr()
667 if ((x86_arch_cap_msr & ARCH_CAP_MDS_NO) && !boot_cpu_has(X86_FEATURE_RTM) && in srbds_select_mitigation()
670 else if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in srbds_select_mitigation()
672 else if (!boot_cpu_has(X86_FEATURE_SRBDS_CTRL)) in srbds_select_mitigation()
706 if (!l1d_flush_mitigation || !boot_cpu_has(X86_FEATURE_FLUSH_L1D)) in l1d_flush_select_mitigation()
800 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in gds_select_mitigation()
887 if (!boot_cpu_has(X86_FEATURE_SMAP)) in smap_works_speculatively()
896 if (boot_cpu_has(X86_BUG_CPU_MELTDOWN)) in smap_works_speculatively()
922 if (boot_cpu_has(X86_FEATURE_FSGSBASE) || in spectre_v1_select_mitigation()
933 !boot_cpu_has(X86_FEATURE_PTI)) in spectre_v1_select_mitigation()
1054 if (!boot_cpu_has(X86_FEATURE_IBPB)) { in retbleed_select_mitigation()
1087 else if (IS_ENABLED(CONFIG_CPU_IBPB_ENTRY) && boot_cpu_has(X86_FEATURE_IBPB)) in retbleed_select_mitigation()
1147 if (mitigate_smt && !boot_cpu_has(X86_FEATURE_STIBP) && in retbleed_select_mitigation()
1335 if (!boot_cpu_has(X86_FEATURE_IBPB) && !boot_cpu_has(X86_FEATURE_STIBP)) in spectre_v2_user_select_mitigation()
1364 if (boot_cpu_has(X86_FEATURE_IBPB)) { in spectre_v2_user_select_mitigation()
1401 if (!boot_cpu_has(X86_FEATURE_STIBP) || in spectre_v2_user_select_mitigation()
1404 !boot_cpu_has(X86_FEATURE_AUTOIBRS))) in spectre_v2_user_select_mitigation()
1413 boot_cpu_has(X86_FEATURE_AMD_STIBP_ALWAYS_ON)) in spectre_v2_user_select_mitigation()
1504 !boot_cpu_has(X86_FEATURE_IBRS_ENHANCED)) { in spectre_v2_parse_cmdline()
1512 !boot_cpu_has(X86_FEATURE_LFENCE_RDTSC)) { in spectre_v2_parse_cmdline()
1530 if (cmd == SPECTRE_V2_CMD_IBRS && !boot_cpu_has(X86_FEATURE_IBRS)) { in spectre_v2_parse_cmdline()
1570 if (!boot_cpu_has(X86_FEATURE_RRSBA_CTRL)) in spec_ctrl_disable_kernel_rrsba()
1631 if (!boot_cpu_has(X86_FEATURE_BHI_CTRL)) in spec_ctrl_bhi_dis()
1671 if (boot_cpu_has(X86_FEATURE_RETPOLINE) && in bhi_select_mitigation()
1672 !boot_cpu_has(X86_FEATURE_RETPOLINE_LFENCE)) { in bhi_select_mitigation()
1712 if (boot_cpu_has(X86_FEATURE_IBRS_ENHANCED)) { in spectre_v2_select_mitigation()
1721 boot_cpu_has(X86_FEATURE_IBRS) && in spectre_v2_select_mitigation()
1764 if (boot_cpu_has(X86_FEATURE_AUTOIBRS)) { in spectre_v2_select_mitigation()
1779 if (boot_cpu_has(X86_FEATURE_IBRS_ENHANCED)) in spectre_v2_select_mitigation()
1804 if (boot_cpu_has(X86_BUG_BHI)) in spectre_v2_select_mitigation()
1865 boot_cpu_has(X86_FEATURE_IBPB) && in spectre_v2_select_mitigation()
1874 } else if (boot_cpu_has(X86_FEATURE_IBRS) && !spectre_v2_in_ibrs_mode(mode)) { in spectre_v2_select_mitigation()
1968 if (sched_smt_active() && !boot_cpu_has(X86_BUG_MSBDS_ONLY)) in cpu_bugs_smt_update()
2069 if (!boot_cpu_has(X86_FEATURE_SSBD)) in __ssb_select_mitigation()
2369 if (boot_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) in x86_spec_ctrl_setup_ap()
2561 bool has_microcode = boot_cpu_has(X86_FEATURE_IBPB_BRTYPE); in srso_select_mitigation()
2647 if (!boot_cpu_has(X86_FEATURE_ENTRY_IBPB) && has_microcode) { in srso_select_mitigation()
2673 boot_cpu_has(X86_FEATURE_SBPB)) in srso_select_mitigation()
2713 if (!boot_cpu_has(X86_FEATURE_MSR_IA32_FEAT_CTL) || in itlb_multihit_show_state()
2714 !boot_cpu_has(X86_FEATURE_VMX)) in itlb_multihit_show_state()
2737 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in mds_show_state()
2742 if (boot_cpu_has(X86_BUG_MSBDS_ONLY)) { in mds_show_state()
2758 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in tsx_async_abort_show_state()
2775 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in mmio_stale_data_show_state()
2792 !boot_cpu_has(X86_FEATURE_AUTOIBRS)) in stibp_state()
2812 if (boot_cpu_has(X86_FEATURE_IBPB)) { in ibpb_state()
2825 if (boot_cpu_has(X86_FEATURE_RSB_VMEXIT_LITE) || in pbrsb_eibrs_state()
2826 boot_cpu_has(X86_FEATURE_RSB_VMEXIT)) in pbrsb_eibrs_state()
2839 else if (boot_cpu_has(X86_FEATURE_CLEAR_BHB_HW)) in spectre_bhi_state()
2841 else if (boot_cpu_has(X86_FEATURE_CLEAR_BHB_LOOP)) in spectre_bhi_state()
2843 else if (boot_cpu_has(X86_FEATURE_RETPOLINE) && in spectre_bhi_state()
2844 !boot_cpu_has(X86_FEATURE_RETPOLINE_LFENCE) && in spectre_bhi_state()
2847 else if (boot_cpu_has(X86_FEATURE_CLEAR_BHB_LOOP_ON_VMEXIT)) in spectre_bhi_state()
2868 boot_cpu_has(X86_FEATURE_USE_IBRS_FW) ? "; IBRS_FW" : "", in spectre_v2_show_state()
2870 boot_cpu_has(X86_FEATURE_RSB_CTXSW) ? "; RSB filling" : "", in spectre_v2_show_state()
2902 if (boot_cpu_has(X86_FEATURE_SRSO_NO)) in srso_show_state()
2921 if (boot_cpu_has(X86_FEATURE_PTI)) in cpu_show_common()
2939 if (boot_cpu_has(X86_FEATURE_L1TF_PTEINV)) in cpu_show_common()