Home
last modified time | relevance | path

Searched refs:this_cpu_has (Results 1 – 25 of 30) sorted by relevance

12

/linux/tools/testing/selftests/kvm/x86/
H A Dstate_test.c142 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()
H A Dcr4_cpuid_sync_test.c35 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSXSAVE)); in guest_code()
57 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSXSAVE)); in guest_code()
H A Dpmu_counters_test.c181 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()
H A Dkvm_buslock_test.c63 if (this_cpu_has(X86_FEATURE_SVM)) in guest_code()
65 else if (this_cpu_has(X86_FEATURE_VMX)) in guest_code()
H A Dmonitor_mwait_test.c51 __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()
H A Dsmm_test.c83 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code()
99 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code()
H A Daperfmperf_test.c98 if (this_cpu_has(X86_FEATURE_SVM)) in guest_code()
100 else if (this_cpu_has(X86_FEATURE_VMX)) in guest_code()
H A Dmsrs_test.c147 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()
H A Dnested_close_kvm_test.c62 if (this_cpu_has(X86_FEATURE_VMX)) in l1_guest_code()
H A Damx_test.c153 GUEST_ASSERT(this_cpu_has(X86_FEATURE_XSAVE) && in guest_code()
154 this_cpu_has(X86_FEATURE_OSXSAVE)); in guest_code()
H A Dhyperv_features.c74 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()
H A Dnested_invalid_cr3_test.c71 if (this_cpu_has(X86_FEATURE_VMX)) in l1_guest_code()
H A Dnested_tsc_adjust_test.c89 if (this_cpu_has(X86_FEATURE_VMX)) { in l1_guest_code()
H A Dnested_emulation_test.c51 int f = this_cpu_has(X86_FEATURE_SVM) ? SVM_F : VMX_F; in guest_code()
H A Dnested_tsc_scaling_test.c145 if (this_cpu_has(X86_FEATURE_VMX)) in l1_guest_code()
H A Dnested_dirty_log_test.c137 if (this_cpu_has(X86_FEATURE_VMX)) in l1_guest_code()
H A Dsev_smoke_test.c75 GUEST_ASSERT(this_cpu_has(X86_FEATURE_SEV)); in guest_sev_code()
H A Dnested_exceptions_test.c161 if (this_cpu_has(X86_FEATURE_SVM)) in l1_guest_code()
/linux/drivers/thermal/intel/
H A Dtherm_throt.c667 if (this_cpu_has(X86_FEATURE_PLN) && int_pln_enable) in intel_thermal_interrupt()
672 if (this_cpu_has(X86_FEATURE_PTS)) { in intel_thermal_interrupt()
679 if (this_cpu_has(X86_FEATURE_PLN) && int_pln_enable) in intel_thermal_interrupt()
685 if (this_cpu_has(X86_FEATURE_HFI)) in intel_thermal_interrupt()
/linux/arch/um/include/asm/
H A Dcpufeature.h39 #define this_cpu_has(bit) \ macro
/linux/tools/testing/selftests/kvm/lib/x86/
H A Dmemstress.c72 if (this_cpu_has(X86_FEATURE_VMX)) in memstress_l1_guest_code()
/linux/arch/x86/include/asm/
H A Dcpufeature.h58 #define this_cpu_has(bit) \ macro
/linux/arch/x86/kernel/apic/
H A Dapic.c578 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()
/linux/tools/testing/selftests/kvm/include/x86/
H A Dprocessor.h732 static inline bool this_cpu_has(struct kvm_x86_cpu_feature feature) in this_cpu_has() function
770 return nr_bits > feature.f.bit && !this_cpu_has(feature.f); in this_pmu_has()
775 return nr_bits > feature.f.bit || this_cpu_has(feature.f); in this_pmu_has()
/linux/tools/testing/selftests/kvm/
H A Daccess_tracking_perf_test.c469 if (this_cpu_has(X86_FEATURE_HYPERVISOR)) { in access_tracking_unreliable()

12