Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/kvm/x86_64/
H A Dstate_test.c142 if (this_cpu_has(X86_FEATURE_XSAVE)) { in guest_code()
149 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSXSAVE)); in guest_code()
175 if (this_cpu_has(X86_FEATURE_MPX)) { in guest_code()
209 if (this_cpu_has(X86_FEATURE_PKU)) { in guest_code()
212 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSPKE)); in guest_code()
221 if (this_cpu_has(X86_FEATURE_SVM)) in guest_code()
H A Dpmu_counters_test.c120 if (!this_cpu_has(X86_FEATURE_CLFLUSHOPT) && in guest_assert_event_count()
121 !this_cpu_has(X86_FEATURE_CLFLUSH)) in guest_assert_event_count()
179 if (this_cpu_has(X86_FEATURE_CLFLUSHOPT)) \
181 else if (this_cpu_has(X86_FEATURE_CLFLUSH)) \
245 if (this_cpu_has(X86_FEATURE_PDCM) && in guest_test_arch_event()
450 if (this_cpu_has(X86_FEATURE_PDCM) && in guest_test_gp_counters()
H 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()
H A Dcr4_cpuid_sync_test.c26 return (this_cpu_has(X86_FEATURE_OSXSAVE) == !!(cr4 & X86_CR4_OSXSAVE)); in cr4_cpuid_is_sync()
H A Damx_test.c129 GUEST_ASSERT(this_cpu_has(X86_FEATURE_XSAVE)); in init_regs()
135 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSXSAVE)); in init_regs()
H A Dmonitor_mwait_test.c78 TEST_REQUIRE(this_cpu_has(X86_FEATURE_MWAIT)); in main()
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 Dsev_smoke_test.c35 GUEST_ASSERT(this_cpu_has(X86_FEATURE_SEV)); in guest_sev_code()
H A Dnested_exceptions_test.c159 if (this_cpu_has(X86_FEATURE_SVM)) in l1_guest_code()
/linux/drivers/thermal/intel/
H A Dtherm_throt.c666 if (this_cpu_has(X86_FEATURE_PLN) && int_pln_enable) in intel_thermal_interrupt()
671 if (this_cpu_has(X86_FEATURE_PTS)) { in intel_thermal_interrupt()
678 if (this_cpu_has(X86_FEATURE_PLN) && int_pln_enable) in intel_thermal_interrupt()
684 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/arch/x86/include/asm/
H A Dcpufeature.h130 #define this_cpu_has(bit) \ macro
/linux/tools/testing/selftests/kvm/
H A Daccess_tracking_perf_test.c188 TEST_ASSERT(this_cpu_has(X86_FEATURE_HYPERVISOR), in mark_vcpu_memory_idle()
/linux/arch/x86/kernel/
H A Dsmpboot.c1289 if (!this_cpu_has(X86_FEATURE_MWAIT)) in mwait_play_dead()
1291 if (!this_cpu_has(X86_FEATURE_CLFLUSH)) in mwait_play_dead()
H A Dprocess.c904 if (this_cpu_has(X86_BUG_CLFLUSH_MONITOR)) { in mwait_idle()
/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h695 static inline bool this_cpu_has(struct kvm_x86_cpu_feature feature) in this_cpu_has() function
733 return nr_bits > feature.f.bit && !this_cpu_has(feature.f); in this_pmu_has()
738 return nr_bits > feature.f.bit || this_cpu_has(feature.f); in this_pmu_has()
/linux/arch/x86/kernel/apic/
H A Dapic.c575 if (this_cpu_has(X86_FEATURE_ARAT)) { in setup_APIC_timer()
584 if (this_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) { in setup_APIC_timer()
604 if (!this_cpu_has(X86_FEATURE_TSC_DEADLINE_TIMER)) in __lapic_update_tsc_freq()
/linux/drivers/acpi/
H A Dprocessor_throttling.c705 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_rdmsr()
725 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_wrmsr()
/linux/arch/x86/kvm/vmx/
H A Dvmx.c2783 if (!this_cpu_has(X86_FEATURE_MSR_IA32_FEAT_CTL) || in __kvm_is_vmx_supported()
2784 !this_cpu_has(X86_FEATURE_VMX)) { in __kvm_is_vmx_supported()
/linux/arch/x86/kvm/svm/
H A Dsev.c706 if (this_cpu_has(X86_FEATURE_SME_COHERENT) || npages == 0 || in sev_clflush_pages()
/linux/arch/x86/events/intel/
H A Dcore.c4957 if (this_cpu_has(X86_FEATURE_ARCH_PERFMON_EXT)) in init_hybrid_pmu()