Home
last modified time | relevance | path

Searched refs:cpu_feature_enabled (Results 1 – 25 of 60) sorted by relevance

123

/linux-5.19.10/arch/x86/include/asm/
Dkvm_para.h38 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in kvm_hypercall0()
52 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in kvm_hypercall1()
67 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in kvm_hypercall2()
82 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in kvm_hypercall3()
98 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) in kvm_hypercall4()
Dpkeys.h10 #define arch_max_pkey() (cpu_feature_enabled(X86_FEATURE_OSPKE) ? 16 : 1)
17 return cpu_feature_enabled(X86_FEATURE_OSPKE); in arch_pkeys_enabled()
27 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in execute_only_pkey()
38 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in arch_override_mprotect_pkey()
Dpkru.h37 if (cpu_feature_enabled(X86_FEATURE_OSPKE)) in read_pkru()
44 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in write_pkru()
56 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in pkru_write_default()
Dmmu_context.h111 if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { in init_new_context()
158 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in arch_dup_pkeys()
Dtimex.h11 !cpu_feature_enabled(X86_FEATURE_TSC)) in random_get_entropy()
Dacenv.h26 if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \
Dtsc.h24 !cpu_feature_enabled(X86_FEATURE_TSC)) in get_cycles()
Dpgtable_64_types.h36 #define pgtable_l5_enabled() cpu_feature_enabled(X86_FEATURE_LA57)
/linux-5.19.10/arch/x86/kernel/fpu/
Dregset.c75 if (!cpu_feature_enabled(X86_FEATURE_FXSR)) in xfpregs_get()
97 if (!cpu_feature_enabled(X86_FEATURE_FXSR)) in xfpregs_set()
132 if (!cpu_feature_enabled(X86_FEATURE_XSAVE)) in xstateregs_get()
149 if (!cpu_feature_enabled(X86_FEATURE_XSAVE)) in xstateregs_set()
328 if (!cpu_feature_enabled(X86_FEATURE_FPU)) in fpregs_get()
331 if (!cpu_feature_enabled(X86_FEATURE_FXSR)) { in fpregs_get()
362 if (!cpu_feature_enabled(X86_FEATURE_FPU)) in fpregs_set()
371 if (cpu_feature_enabled(X86_FEATURE_FXSR)) in fpregs_set()
380 if (cpu_feature_enabled(X86_FEATURE_XSAVE)) in fpregs_set()
Dxstate.c145 if (!cpu_feature_enabled(X86_FEATURE_XCOMPACTED) || in xfeature_get_offset()
182 if (cpu_feature_enabled(X86_FEATURE_XFD)) in fpu__init_cpu_xstate()
317 if (cpu_feature_enabled(X86_FEATURE_XSAVES)) in os_xrstor_booting()
588 bool compacted = cpu_feature_enabled(X86_FEATURE_XCOMPACTED); in paranoid_xstate_size_valid()
589 bool xsaves = cpu_feature_enabled(X86_FEATURE_XSAVES); in paranoid_xstate_size_valid()
699 bool compacted = cpu_feature_enabled(X86_FEATURE_XCOMPACTED); in init_xstate_size()
823 if (!cpu_feature_enabled(X86_FEATURE_XFD)) in fpu__init_system_xstate()
826 if (!cpu_feature_enabled(X86_FEATURE_XSAVES)) in fpu__init_system_xstate()
854 if (cpu_feature_enabled(X86_FEATURE_XSAVEC) || in fpu__init_system_xstate()
855 cpu_feature_enabled(X86_FEATURE_XSAVES)) in fpu__init_system_xstate()
[all …]
Dinternal.h10 return cpu_feature_enabled(X86_FEATURE_XSAVE); in use_xsave()
15 return cpu_feature_enabled(X86_FEATURE_FXSR); in use_fxsr()
Dcore.c378 if (cpu_feature_enabled(X86_FEATURE_XSAVE)) { in fpu_copy_guest_fpstate_to_uabi()
397 if (!cpu_feature_enabled(X86_FEATURE_XSAVE)) { in fpu_copy_uabi_to_guest_fpstate()
508 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpstate_init_user()
515 if (cpu_feature_enabled(X86_FEATURE_FXSR)) in fpstate_init_user()
569 if (!cpu_feature_enabled(X86_FEATURE_FPU)) in fpu_clone()
714 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpu__clear_user_states()
Dxstate.h19 if (cpu_feature_enabled(X86_FEATURE_XCOMPACTED)) in xstate_init_xcomp_bv()
65 if (!cpu_feature_enabled(X86_FEATURE_ARCH_LBR)) in xfeatures_mask_independent()
317 if (cpu_feature_enabled(X86_FEATURE_XSAVES)) in os_xrstor_safe()
Dinit.c196 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpu__init_system_xstate_size_legacy()
198 } else if (cpu_feature_enabled(X86_FEATURE_FXSR)) { in fpu__init_system_xstate_size_legacy()
/linux-5.19.10/arch/x86/include/asm/fpu/
Dsched.h41 if (cpu_feature_enabled(X86_FEATURE_FPU) && in switch_fpu_prepare()
64 if (cpu_feature_enabled(X86_FEATURE_FPU)) in switch_fpu_finish()
/linux-5.19.10/arch/x86/kernel/cpu/
Daperfmperf.c378 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in arch_scale_freq_tick()
412 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in arch_freq_get_on_cpu()
438 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in bp_init_aperfmperf()
449 if (cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in ap_init_aperfmperf()
Dcommon.c393 if (!cpu_feature_enabled(X86_FEATURE_UMIP)) in setup_umip()
533 if (pku_disabled || !cpu_feature_enabled(X86_FEATURE_PKU)) in setup_pku()
541 } else if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) { in setup_pku()
577 if (cpu_feature_enabled(X86_FEATURE_IBT)) { in ibt_save()
589 if (cpu_feature_enabled(X86_FEATURE_IBT)) { in ibt_restore()
604 !cpu_feature_enabled(X86_FEATURE_IBT)) in setup_cet()
619 if (cpu_feature_enabled(X86_FEATURE_IBT)) in cet_disable()
1932 if (HAS_KERNEL_IBT && cpu_feature_enabled(X86_FEATURE_IBT)) in identify_boot_cpu()
2247 if (IS_ENABLED(CONFIG_X86_64) || cpu_feature_enabled(X86_FEATURE_VME) || in cpu_init()
Dtsx.c162 !cpu_feature_enabled(X86_FEATURE_SRBDS_CTRL)) in tsx_dev_mode_disable()
/linux-5.19.10/arch/x86/kernel/cpu/sgx/
Ddriver.c153 if (!cpu_feature_enabled(X86_FEATURE_SGX_LC)) in sgx_drv_init()
170 if (cpu_feature_enabled(X86_FEATURE_OSXSAVE)) { in sgx_drv_init()
Dvirt.c308 if (!cpu_feature_enabled(X86_FEATURE_VMX)) in sgx_vepc_init()
410 if (!cpu_feature_enabled(X86_FEATURE_SGX_LC)) { in sgx_virt_einit()
/linux-5.19.10/arch/x86/events/amd/
Dbrs.c60 if (!cpu_feature_enabled(X86_FEATURE_BRS)) in amd_brs_detect()
115 if (!cpu_feature_enabled(X86_FEATURE_BRS)) in amd_brs_reset()
/linux-5.19.10/arch/x86/mm/
Dmem_encrypt.c46 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) { in print_mem_encrypt_feature_info()
/linux-5.19.10/arch/x86/kernel/cpu/mtrr/
Dmtrr.c731 if (cpu_feature_enabled(X86_FEATURE_K6_MTRR)) { in mtrr_bp_init()
739 if (cpu_feature_enabled(X86_FEATURE_CENTAUR_MCR)) { in mtrr_bp_init()
746 if (cpu_feature_enabled(X86_FEATURE_CYRIX_ARR)) { in mtrr_bp_init()
/linux-5.19.10/arch/x86/kernel/acpi/
Dcppc.c107 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in init_freq_invariance_cppc()
/linux-5.19.10/arch/x86/kernel/
Dstatic_call.c54 if (cpu_feature_enabled(X86_FEATURE_RETHUNK)) in __static_call_transform()

123