| /linux-6.15/tools/testing/selftests/kvm/x86/ |
| H A D | state_test.c | 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()
|
| H A D | cr4_cpuid_sync_test.c | 35 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 D | pmu_counters_test.c | 168 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()
|
| H A D | smm_test.c | 85 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code() 101 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code()
|
| H A D | amx_test.c | 131 GUEST_ASSERT(this_cpu_has(X86_FEATURE_XSAVE) && in guest_code() 132 this_cpu_has(X86_FEATURE_OSXSAVE)); in guest_code()
|
| H A D | monitor_mwait_test.c | 51 __GUEST_ASSERT(this_cpu_has(X86_FEATURE_MWAIT) == !(testcase & MWAIT_DISABLED), in guest_monitor_wait()
|
| H A D | hyperv_features.c | 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()
|
| H A D | nested_emulation_test.c | 51 int f = this_cpu_has(X86_FEATURE_SVM) ? SVM_F : VMX_F; in guest_code()
|
| H A D | sev_smoke_test.c | 35 GUEST_ASSERT(this_cpu_has(X86_FEATURE_SEV)); in guest_sev_code()
|
| H A D | nested_exceptions_test.c | 161 if (this_cpu_has(X86_FEATURE_SVM)) in l1_guest_code()
|
| H A D | xapic_ipi_test.c | 475 if (this_cpu_has(X86_FEATURE_IDLE_HLT)) in main()
|
| /linux-6.15/drivers/thermal/intel/ |
| H A D | therm_throt.c | 666 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-6.15/arch/um/include/asm/ |
| H A D | cpufeature.h | 39 #define this_cpu_has(bit) \ macro
|
| /linux-6.15/arch/x86/include/asm/ |
| H A D | cpufeature.h | 58 #define this_cpu_has(bit) \ macro
|
| /linux-6.15/tools/testing/selftests/kvm/ |
| H A D | access_tracking_perf_test.c | 188 TEST_ASSERT(this_cpu_has(X86_FEATURE_HYPERVISOR), in mark_vcpu_memory_idle()
|
| /linux-6.15/arch/x86/kernel/apic/ |
| H A D | apic.c | 575 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-6.15/tools/testing/selftests/kvm/include/x86/ |
| H A D | processor.h | 708 static inline bool this_cpu_has(struct kvm_x86_cpu_feature feature) in this_cpu_has() function 746 return nr_bits > feature.f.bit && !this_cpu_has(feature.f); in this_pmu_has() 751 return nr_bits > feature.f.bit || this_cpu_has(feature.f); in this_pmu_has()
|
| /linux-6.15/drivers/acpi/ |
| H A D | processor_throttling.c | 705 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_rdmsr() 725 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_wrmsr()
|
| /linux-6.15/arch/x86/kernel/ |
| H A D | process.c | 910 if (this_cpu_has(X86_BUG_CLFLUSH_MONITOR)) { in mwait_idle()
|
| /linux-6.15/arch/x86/kvm/vmx/ |
| H A D | vmx.c | 2797 if (!this_cpu_has(X86_FEATURE_MSR_IA32_FEAT_CTL) || in __kvm_is_vmx_supported() 2798 !this_cpu_has(X86_FEATURE_VMX)) { in __kvm_is_vmx_supported()
|
| /linux-6.15/arch/x86/kvm/svm/ |
| H A D | sev.c | 696 if (this_cpu_has(X86_FEATURE_SME_COHERENT) || npages == 0 || in sev_clflush_pages()
|
| /linux-6.15/arch/x86/events/intel/ |
| H A D | core.c | 5152 if (this_cpu_has(X86_FEATURE_ARCH_PERFMON_EXT)) in init_hybrid_pmu()
|