Searched refs:this_cpu_has (Results 1 – 21 of 21) sorted by relevance
142 if (this_cpu_has(X86_FEATURE_XSAVE)) { in guest_code()170 if (this_cpu_has(X86_FEATURE_MPX)) { in guest_code()204 if (this_cpu_has(X86_FEATURE_PKU)) { in guest_code()207 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSPKE)); in guest_code()216 if (this_cpu_has(X86_FEATURE_SVM)) in guest_code()
181 if (!this_cpu_has(X86_FEATURE_CLFLUSHOPT) && in guest_assert_event_count()182 !this_cpu_has(X86_FEATURE_CLFLUSH)) in guest_assert_event_count()248 if (this_cpu_has(X86_FEATURE_CLFLUSHOPT)) \250 else if (this_cpu_has(X86_FEATURE_CLFLUSH)) \280 if (this_cpu_has(X86_FEATURE_PDCM) && in guest_test_arch_event()488 if (this_cpu_has(X86_FEATURE_PDCM) && in guest_test_gp_counters()
51 __GUEST_ASSERT(this_cpu_has(X86_FEATURE_MWAIT) == !(testcase & MWAIT_DISABLED), in guest_monitor_wait()77 TEST_REQUIRE(this_cpu_has(X86_FEATURE_MWAIT)); in main()
98 if (this_cpu_has(X86_FEATURE_SVM)) in guest_code()100 else if (this_cpu_has(X86_FEATURE_VMX)) in guest_code()
147 if (this_cpu_has(msr->feature2)) { in guest_test_unsupported_msr()178 if (!this_cpu_has(msr->feature) || in guest_test_reserved_val()196 if (this_cpu_has(msr->feature)) in guest_main()
62 if (this_cpu_has(X86_FEATURE_VMX)) in l1_guest_code()
74 if (!this_cpu_has(HV_ACCESS_TSC_INVARIANT)) in guest_msr()75 GUEST_ASSERT(this_cpu_has(X86_FEATURE_INVTSC)); in guest_msr()77 GUEST_ASSERT(this_cpu_has(X86_FEATURE_INVTSC) == in guest_msr()
71 if (this_cpu_has(X86_FEATURE_VMX)) in l1_guest_code()
89 if (this_cpu_has(X86_FEATURE_VMX)) { in l1_guest_code()
145 if (this_cpu_has(X86_FEATURE_VMX)) in l1_guest_code()
47 GUEST_ASSERT(this_cpu_has(X86_FEATURE_SEV)); in guest_sev_code()
161 if (this_cpu_has(X86_FEATURE_SVM)) in l1_guest_code()
474 if (this_cpu_has(X86_FEATURE_IDLE_HLT)) in main()
39 #define this_cpu_has(bit) \ macro
58 #define this_cpu_has(bit) \ macro
578 if (this_cpu_has(X86_FEATURE_ARAT)) { in setup_APIC_timer()587 if (this_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) { in setup_APIC_timer()609 if (!this_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __lapic_update_tsc_freq()
716 static inline bool this_cpu_has(struct kvm_x86_cpu_feature feature) in this_cpu_has() function754 return nr_bits > feature.f.bit && !this_cpu_has(feature.f); in this_pmu_has()759 return nr_bits > feature.f.bit || this_cpu_has(feature.f); in this_pmu_has()
469 if (this_cpu_has(X86_FEATURE_HYPERVISOR)) { in access_tracking_unreliable()
708 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_rdmsr()728 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_wrmsr()
745 if (this_cpu_has(X86_FEATURE_SME_COHERENT) || npages == 0 || in sev_clflush_pages()
5763 if (this_cpu_has(X86_FEATURE_ARCH_PERFMON_EXT)) in init_hybrid_pmu()