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()
254 if (!boot_cpu_has(X86_FEATURE_MD_CLEAR)) in mds_select_mitigation()
259 if (!boot_cpu_has(X86_BUG_MSBDS_ONLY) && in mds_select_mitigation()
316 if (!boot_cpu_has(X86_FEATURE_RTM)) { in taa_select_mitigation()
334 if (boot_cpu_has(X86_FEATURE_MD_CLEAR)) in taa_select_mitigation()
423 boot_cpu_has(X86_FEATURE_RTM))) in mmio_select_mitigation()
430 if (boot_cpu_has(X86_FEATURE_CLEAR_CPU_BUF)) in mmio_select_mitigation()
451 (boot_cpu_has(X86_FEATURE_MD_CLEAR) && in mmio_select_mitigation()
452 boot_cpu_has(X86_FEATURE_FLUSH_L1D) && in mmio_select_mitigation()
542 if (!boot_cpu_has(X86_FEATURE_CLEAR_CPU_BUF)) in md_clear_update_mitigation()
631 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in update_srbds_msr()
641 if (!boot_cpu_has(X86_FEATURE_SRBDS_CTRL)) in update_srbds_msr()
671 if ((x86_arch_cap_msr & ARCH_CAP_MDS_NO) && !boot_cpu_has(X86_FEATURE_RTM) && in srbds_select_mitigation()
674 else if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) in srbds_select_mitigation()
676 else if (!boot_cpu_has(X86_FEATURE_SRBDS_CTRL)) in srbds_select_mitigation()
710 if (!l1d_flush_mitigation || !boot_cpu_has(X86_FEATURE_FLUSH_L1D)) in l1d_flush_select_mitigation()
801 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in gds_select_mitigation()
889 if (!boot_cpu_has(X86_FEATURE_SMAP)) in smap_works_speculatively()
898 if (boot_cpu_has(X86_BUG_CPU_MELTDOWN)) in smap_works_speculatively()
924 if (boot_cpu_has(X86_FEATURE_FSGSBASE) || in spectre_v1_select_mitigation()
935 !boot_cpu_has(X86_FEATURE_PTI)) in spectre_v1_select_mitigation()
1056 if (!boot_cpu_has(X86_FEATURE_IBPB)) { in retbleed_select_mitigation()
1089 boot_cpu_has(X86_FEATURE_IBPB)) in retbleed_select_mitigation()
1150 if (mitigate_smt && !boot_cpu_has(X86_FEATURE_STIBP) && in retbleed_select_mitigation()
1338 if (!boot_cpu_has(X86_FEATURE_IBPB) && !boot_cpu_has(X86_FEATURE_STIBP)) in spectre_v2_user_select_mitigation()
1367 if (boot_cpu_has(X86_FEATURE_IBPB)) { in spectre_v2_user_select_mitigation()
1404 if (!boot_cpu_has(X86_FEATURE_STIBP) || in spectre_v2_user_select_mitigation()
1407 !boot_cpu_has(X86_FEATURE_AUTOIBRS))) in spectre_v2_user_select_mitigation()
1416 boot_cpu_has(X86_FEATURE_AMD_STIBP_ALWAYS_ON)) in spectre_v2_user_select_mitigation()
1508 !boot_cpu_has(X86_FEATURE_IBRS_ENHANCED)) { in spectre_v2_parse_cmdline()
1516 !boot_cpu_has(X86_FEATURE_LFENCE_RDTSC)) { in spectre_v2_parse_cmdline()
1534 if (cmd == SPECTRE_V2_CMD_IBRS && !boot_cpu_has(X86_FEATURE_IBRS)) { in spectre_v2_parse_cmdline()
1574 if (!boot_cpu_has(X86_FEATURE_RRSBA_CTRL)) in spec_ctrl_disable_kernel_rrsba()
1635 if (!boot_cpu_has(X86_FEATURE_BHI_CTRL)) in spec_ctrl_bhi_dis()
1678 if (boot_cpu_has(X86_FEATURE_RETPOLINE) && in bhi_select_mitigation()
1679 !boot_cpu_has(X86_FEATURE_RETPOLINE_LFENCE)) { in bhi_select_mitigation()
1722 if (boot_cpu_has(X86_FEATURE_IBRS_ENHANCED)) { in spectre_v2_select_mitigation()
1731 boot_cpu_has(X86_FEATURE_IBRS) && in spectre_v2_select_mitigation()
1774 if (boot_cpu_has(X86_FEATURE_AUTOIBRS)) { in spectre_v2_select_mitigation()
1789 if (boot_cpu_has(X86_FEATURE_IBRS_ENHANCED)) in spectre_v2_select_mitigation()
1814 if (boot_cpu_has(X86_BUG_BHI)) in spectre_v2_select_mitigation()
1875 boot_cpu_has(X86_FEATURE_IBPB) && in spectre_v2_select_mitigation()
1884 } else if (boot_cpu_has(X86_FEATURE_IBRS) && !spectre_v2_in_ibrs_mode(mode)) { in spectre_v2_select_mitigation()
1978 if (sched_smt_active() && !boot_cpu_has(X86_BUG_MSBDS_ONLY)) in cpu_bugs_smt_update()
2081 if (!boot_cpu_has(X86_FEATURE_SSBD)) in __ssb_select_mitigation()
2382 if (boot_cpu_has(X86_FEATURE_MSR_SPEC_CTRL)) in x86_spec_ctrl_setup_ap()
2575 bool has_microcode = boot_cpu_has(X86_FEATURE_IBPB_BRTYPE); in srso_select_mitigation()
2580 if (boot_cpu_has(X86_FEATURE_SBPB)) in srso_select_mitigation()
2663 if (!boot_cpu_has(X86_FEATURE_ENTRY_IBPB) && has_microcode) { in srso_select_mitigation()
2722 if (!boot_cpu_has(X86_FEATURE_MSR_IA32_FEAT_CTL) || in itlb_multihit_show_state()
2723 !boot_cpu_has(X86_FEATURE_VMX)) in itlb_multihit_show_state()
2746 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in mds_show_state()
2751 if (boot_cpu_has(X86_BUG_MSBDS_ONLY)) { in mds_show_state()
2767 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in tsx_async_abort_show_state()
2784 if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { in mmio_stale_data_show_state()
2801 !boot_cpu_has(X86_FEATURE_AUTOIBRS)) in stibp_state()
2821 if (boot_cpu_has(X86_FEATURE_IBPB)) { in ibpb_state()
2834 if (boot_cpu_has(X86_FEATURE_RSB_VMEXIT_LITE) || in pbrsb_eibrs_state()
2835 boot_cpu_has(X86_FEATURE_RSB_VMEXIT)) in pbrsb_eibrs_state()
2848 else if (boot_cpu_has(X86_FEATURE_CLEAR_BHB_HW)) in spectre_bhi_state()
2850 else if (boot_cpu_has(X86_FEATURE_CLEAR_BHB_LOOP)) in spectre_bhi_state()
2852 else if (boot_cpu_has(X86_FEATURE_RETPOLINE) && in spectre_bhi_state()
2853 !boot_cpu_has(X86_FEATURE_RETPOLINE_LFENCE) && in spectre_bhi_state()
2856 else if (boot_cpu_has(X86_FEATURE_CLEAR_BHB_LOOP_ON_VMEXIT)) in spectre_bhi_state()
2877 boot_cpu_has(X86_FEATURE_USE_IBRS_FW) ? "; IBRS_FW" : "", in spectre_v2_show_state()
2879 boot_cpu_has(X86_FEATURE_RSB_CTXSW) ? "; RSB filling" : "", in spectre_v2_show_state()
2911 if (boot_cpu_has(X86_FEATURE_SRSO_NO)) in srso_show_state()
2930 if (boot_cpu_has(X86_FEATURE_PTI)) in cpu_show_common()
2948 if (boot_cpu_has(X86_FEATURE_L1TF_PTEINV)) in cpu_show_common()