Lines Matching refs:x86_arch_cap_msr
1288 u64 x86_arch_cap_msr = 0; in x86_read_arch_cap_msr() local
1291 rdmsrl(MSR_IA32_ARCH_CAPABILITIES, x86_arch_cap_msr); in x86_read_arch_cap_msr()
1293 return x86_arch_cap_msr; in x86_read_arch_cap_msr()
1296 static bool arch_cap_mmio_immune(u64 x86_arch_cap_msr) in arch_cap_mmio_immune() argument
1298 return (x86_arch_cap_msr & ARCH_CAP_FBSDP_NO && in arch_cap_mmio_immune()
1299 x86_arch_cap_msr & ARCH_CAP_PSDP_NO && in arch_cap_mmio_immune()
1300 x86_arch_cap_msr & ARCH_CAP_SBDR_SSDP_NO); in arch_cap_mmio_immune()
1303 static bool __init vulnerable_to_rfds(u64 x86_arch_cap_msr) in vulnerable_to_rfds() argument
1306 if (x86_arch_cap_msr & ARCH_CAP_RFDS_NO) in vulnerable_to_rfds()
1314 if (x86_arch_cap_msr & ARCH_CAP_RFDS_CLEAR) in vulnerable_to_rfds()
1323 u64 x86_arch_cap_msr = x86_read_arch_cap_msr(); in cpu_set_bug_bits() local
1327 !(x86_arch_cap_msr & ARCH_CAP_PSCHANGE_MC_NO)) in cpu_set_bug_bits()
1339 !(x86_arch_cap_msr & ARCH_CAP_SSB_NO) && in cpu_set_bug_bits()
1350 if ((x86_arch_cap_msr & ARCH_CAP_IBRS_ALL) || in cpu_set_bug_bits()
1355 !(x86_arch_cap_msr & ARCH_CAP_PBRSB_NO)) in cpu_set_bug_bits()
1360 !(x86_arch_cap_msr & ARCH_CAP_MDS_NO)) { in cpu_set_bug_bits()
1379 if (!(x86_arch_cap_msr & ARCH_CAP_TAA_NO) && in cpu_set_bug_bits()
1381 (x86_arch_cap_msr & ARCH_CAP_TSX_CTRL_MSR))) in cpu_set_bug_bits()
1407 if (!arch_cap_mmio_immune(x86_arch_cap_msr)) { in cpu_set_bug_bits()
1415 if (cpu_matches(cpu_vuln_blacklist, RETBLEED) || (x86_arch_cap_msr & ARCH_CAP_RSBA)) in cpu_set_bug_bits()
1433 if (cpu_matches(cpu_vuln_blacklist, GDS) && !(x86_arch_cap_msr & ARCH_CAP_GDS_NO) && in cpu_set_bug_bits()
1437 if (vulnerable_to_rfds(x86_arch_cap_msr)) in cpu_set_bug_bits()
1441 if (!(x86_arch_cap_msr & ARCH_CAP_BHI_NO) && in cpu_set_bug_bits()
1454 if (x86_arch_cap_msr & ARCH_CAP_RDCL_NO) in cpu_set_bug_bits()