Searched refs:this_cpu_has (Results 1 – 21 of 21) sorted by relevance
142 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()
120 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()
85 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code()101 if (this_cpu_has(X86_FEATURE_SVM)) { in guest_code()
26 return (this_cpu_has(X86_FEATURE_OSXSAVE) == !!(cr4 & X86_CR4_OSXSAVE)); in cr4_cpuid_is_sync()
129 GUEST_ASSERT(this_cpu_has(X86_FEATURE_XSAVE)); in init_regs()135 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSXSAVE)); in init_regs()
78 TEST_REQUIRE(this_cpu_has(X86_FEATURE_MWAIT)); in main()
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()
35 GUEST_ASSERT(this_cpu_has(X86_FEATURE_SEV)); in guest_sev_code()
159 if (this_cpu_has(X86_FEATURE_SVM)) in l1_guest_code()
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()
39 #define this_cpu_has(bit) \ macro
130 #define this_cpu_has(bit) \ macro
188 TEST_ASSERT(this_cpu_has(X86_FEATURE_HYPERVISOR), in mark_vcpu_memory_idle()
1289 if (!this_cpu_has(X86_FEATURE_MWAIT)) in mwait_play_dead()1291 if (!this_cpu_has(X86_FEATURE_CLFLUSH)) in mwait_play_dead()
904 if (this_cpu_has(X86_BUG_CLFLUSH_MONITOR)) { in mwait_idle()
695 static inline bool this_cpu_has(struct kvm_x86_cpu_feature feature) in this_cpu_has() function733 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()
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()
705 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_rdmsr()725 !this_cpu_has(X86_FEATURE_ACPI)) { in acpi_throttling_wrmsr()
2783 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()
706 if (this_cpu_has(X86_FEATURE_SME_COHERENT) || npages == 0 || in sev_clflush_pages()
4957 if (this_cpu_has(X86_FEATURE_ARCH_PERFMON_EXT)) in init_hybrid_pmu()