Home
last modified time | relevance | path

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

/tools/testing/selftests/kvm/x86/
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()
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()
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()
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()
A Dpmu_counters_test.c168 if (!this_cpu_has(X86_FEATURE_CLFLUSHOPT) && in guest_assert_event_count()
169 !this_cpu_has(X86_FEATURE_CLFLUSH)) in guest_assert_event_count()
230 if (this_cpu_has(X86_FEATURE_CLFLUSHOPT)) \
232 else if (this_cpu_has(X86_FEATURE_CLFLUSH)) \
262 if (this_cpu_has(X86_FEATURE_PDCM) && in guest_test_arch_event()
467 if (this_cpu_has(X86_FEATURE_PDCM) && in guest_test_gp_counters()
A Dsmm_test.c85 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code()
101 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code()
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()
A Damx_test.c131 GUEST_ASSERT(this_cpu_has(X86_FEATURE_XSAVE) && in guest_code()
132 this_cpu_has(X86_FEATURE_OSXSAVE)); in guest_code()
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()
A Dnested_emulation_test.c51 int f = this_cpu_has(X86_FEATURE_SVM) ? SVM_F : VMX_F; in guest_code()
A Dsev_smoke_test.c47 GUEST_ASSERT(this_cpu_has(X86_FEATURE_SEV)); in guest_sev_code()
A Dnested_exceptions_test.c161 if (this_cpu_has(X86_FEATURE_SVM)) in l1_guest_code()
A Dxapic_ipi_test.c475 if (this_cpu_has(X86_FEATURE_IDLE_HLT)) in main()
/tools/testing/selftests/kvm/
A Daccess_tracking_perf_test.c468 if (this_cpu_has(X86_FEATURE_HYPERVISOR)) { in access_tracking_unreliable()
/tools/testing/selftests/kvm/include/x86/
A Dprocessor.h709 static inline bool this_cpu_has(struct kvm_x86_cpu_feature feature) in this_cpu_has() function
747 return nr_bits > feature.f.bit && !this_cpu_has(feature.f); in this_pmu_has()
752 return nr_bits > feature.f.bit || this_cpu_has(feature.f); in this_pmu_has()

Completed in 20 milliseconds