Home
last modified time | relevance | path

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

1234

/openbmc/linux/arch/x86/include/asm/
H A 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()
H A 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()
H A 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()
H A Dgsseg.h30 if (cpu_feature_enabled(X86_FEATURE_LKGS)) { in native_load_gs_index()
47 if (cpu_feature_enabled(X86_FEATURE_LKGS)) in lkgs_init()
H A Dentry-common.h27 if (cpu_feature_enabled(X86_FEATURE_SMAP) || in arch_enter_from_user_mode()
28 cpu_feature_enabled(X86_FEATURE_XENPV)) in arch_enter_from_user_mode()
H A Dtimex.h11 !cpu_feature_enabled(X86_FEATURE_TSC)) in random_get_entropy()
H A Dmmu_context.h150 if (cpu_feature_enabled(X86_FEATURE_OSPKE)) { in init_new_context()
199 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in arch_dup_pkeys()
H A Dunaccepted_memory.h11 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) { in arch_accept_memory()
H A Dacenv.h26 if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \
/openbmc/linux/arch/x86/kernel/fpu/
H A Dregset.c76 if (!cpu_feature_enabled(X86_FEATURE_FXSR)) in xfpregs_get()
98 if (!cpu_feature_enabled(X86_FEATURE_FXSR)) in xfpregs_set()
133 if (!cpu_feature_enabled(X86_FEATURE_XSAVE)) in xstateregs_get()
150 if (!cpu_feature_enabled(X86_FEATURE_XSAVE)) in xstateregs_set()
193 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in ssp_get()
223 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in ssp_set()
410 if (!cpu_feature_enabled(X86_FEATURE_FPU)) in fpregs_get()
413 if (!cpu_feature_enabled(X86_FEATURE_FXSR)) { in fpregs_get()
444 if (!cpu_feature_enabled(X86_FEATURE_FPU)) in fpregs_set()
453 if (cpu_feature_enabled(X86_FEATURE_FXSR)) in fpregs_set()
[all …]
H A Dxstate.c146 if (!cpu_feature_enabled(X86_FEATURE_XCOMPACTED) || in xfeature_get_offset()
184 if (cpu_feature_enabled(X86_FEATURE_XFD)) in fpu__init_cpu_xstate()
320 if (cpu_feature_enabled(X86_FEATURE_XSAVES)) in os_xrstor_booting()
584 bool compacted = cpu_feature_enabled(X86_FEATURE_XCOMPACTED); in paranoid_xstate_size_valid()
585 bool xsaves = cpu_feature_enabled(X86_FEATURE_XSAVES); in paranoid_xstate_size_valid()
682 bool compacted = cpu_feature_enabled(X86_FEATURE_XCOMPACTED); in init_xstate_size()
805 if (!cpu_feature_enabled(X86_FEATURE_XFD)) in fpu__init_system_xstate()
808 if (!cpu_feature_enabled(X86_FEATURE_XSAVES)) in fpu__init_system_xstate()
836 if (cpu_feature_enabled(X86_FEATURE_XSAVEC) || in fpu__init_system_xstate()
837 cpu_feature_enabled(X86_FEATURE_XSAVES)) in fpu__init_system_xstate()
[all …]
H A Dinternal.h10 return cpu_feature_enabled(X86_FEATURE_XSAVE); in use_xsave()
15 return cpu_feature_enabled(X86_FEATURE_FXSR); in use_fxsr()
H A Dcore.c378 if (cpu_feature_enabled(X86_FEATURE_XSAVE)) { in fpu_copy_guest_fpstate_to_uabi()
396 if (!cpu_feature_enabled(X86_FEATURE_XSAVE)) { in fpu_copy_uabi_to_guest_fpstate()
506 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpstate_init_user()
513 if (cpu_feature_enabled(X86_FEATURE_FXSR)) in fpstate_init_user()
595 if (!cpu_feature_enabled(X86_FEATURE_FPU)) in fpu_clone()
746 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpu__clear_user_states()
912 if (cpu_feature_enabled(X86_FEATURE_AMX_TILE) && in fpu_idle_fpregs()
H A Dxstate.h19 if (cpu_feature_enabled(X86_FEATURE_XCOMPACTED)) in xstate_init_xcomp_bv()
66 if (!cpu_feature_enabled(X86_FEATURE_ARCH_LBR)) in xfeatures_mask_independent()
324 if (cpu_feature_enabled(X86_FEATURE_XSAVES)) in os_xrstor_safe()
H A Dinit.c193 if (!cpu_feature_enabled(X86_FEATURE_FPU)) { in fpu__init_system_xstate_size_legacy()
195 } else if (cpu_feature_enabled(X86_FEATURE_FXSR)) { in fpu__init_system_xstate_size_legacy()
/openbmc/linux/arch/x86/kernel/cpu/mtrr/
H A Dlegacy.c16 if (cpu_feature_enabled(X86_FEATURE_K6_MTRR)) in mtrr_set_if()
20 if (cpu_feature_enabled(X86_FEATURE_CENTAUR_MCR)) in mtrr_set_if()
24 if (cpu_feature_enabled(X86_FEATURE_CYRIX_ARR)) in mtrr_set_if()
/openbmc/linux/arch/x86/kernel/
H A Dshstk.c167 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in_32bit_syscall()) in shstk_setup()
353 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in setup_signal_shadow_stack()
386 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in restore_signal_shadow_stack()
409 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK) || in shstk_free()
447 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK)) in wrss_control()
486 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK)) in shstk_disable()
510 if (!cpu_feature_enabled(X86_FEATURE_USER_SHSTK)) in SYSCALL_DEFINE3()
H A Dcet.c151 if (cpu_feature_enabled(X86_FEATURE_USER_SHSTK)) in DEFINE_IDTENTRY_ERRORCODE()
156 if (cpu_feature_enabled(X86_FEATURE_IBT)) in DEFINE_IDTENTRY_ERRORCODE()
H A Dstatic_call.c84 if (cpu_feature_enabled(X86_FEATURE_RETHUNK)) in __static_call_transform()
93 if (cpu_feature_enabled(X86_FEATURE_RETHUNK)) in __static_call_transform()
H A Dprocess_64.c169 if (!cpu_feature_enabled(X86_FEATURE_XENPV)) { in __rdgsbase_inactive()
194 if (!cpu_feature_enabled(X86_FEATURE_XENPV)) { in __wrgsbase_inactive()
353 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in x86_pkru_load()
776 if (!cpu_feature_enabled(X86_FEATURE_LAM)) in prctl_enable_tagged_addr()
917 if (!cpu_feature_enabled(X86_FEATURE_LAM)) in do_arch_prctl_64()
/openbmc/linux/arch/x86/kernel/cpu/
H A Dtsx.c121 } else if (cpu_feature_enabled(X86_FEATURE_MSR_TSX_CTRL)) { in tsx_clear_cpuid()
145 !cpu_feature_enabled(X86_FEATURE_MSR_TSX_CTRL) || in tsx_dev_mode_disable()
146 !cpu_feature_enabled(X86_FEATURE_SRBDS_CTRL)) in tsx_dev_mode_disable()
H A Daperfmperf.c387 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in arch_scale_freq_tick()
421 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in arch_freq_get_on_cpu()
447 if (!cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in bp_init_aperfmperf()
458 if (cpu_feature_enabled(X86_FEATURE_APERFMPERF)) in ap_init_aperfmperf()
H A Dcommon.c381 if (!cpu_feature_enabled(X86_FEATURE_UMIP)) in setup_umip()
521 if (pku_disabled || !cpu_feature_enabled(X86_FEATURE_PKU)) in setup_pku()
529 } else if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) { in setup_pku()
565 if (cpu_feature_enabled(X86_FEATURE_IBT)) { in ibt_save()
578 if (cpu_feature_enabled(X86_FEATURE_IBT)) { in ibt_restore()
595 kernel_ibt = HAS_KERNEL_IBT && cpu_feature_enabled(X86_FEATURE_IBT); in setup_cet()
596 user_shstk = cpu_feature_enabled(X86_FEATURE_SHSTK) && in setup_cet()
621 if (!(cpu_feature_enabled(X86_FEATURE_IBT) || in cet_disable()
622 cpu_feature_enabled(X86_FEATURE_SHSTK))) in cet_disable()
2039 if (HAS_KERNEL_IBT && cpu_feature_enabled(X86_FEATURE_IBT)) in identify_boot_cpu()
[all …]
/openbmc/linux/arch/x86/include/asm/fpu/
H A Dsched.h42 if (cpu_feature_enabled(X86_FEATURE_FPU) && in switch_fpu_prepare()
65 if (cpu_feature_enabled(X86_FEATURE_FPU)) in switch_fpu_finish()
/openbmc/linux/arch/x86/kernel/cpu/sgx/
H A 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()

1234