/openbmc/linux/arch/x86/include/asm/ |
H A D | kvm_para.h | 38 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 D | pkeys.h | 10 #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 D | pkru.h | 37 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 D | gsseg.h | 30 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 D | entry-common.h | 27 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 D | timex.h | 11 !cpu_feature_enabled(X86_FEATURE_TSC)) in random_get_entropy()
|
H A D | mmu_context.h | 150 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 D | unaccepted_memory.h | 11 if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) { in arch_accept_memory()
|
H A D | acenv.h | 26 if (!cpu_feature_enabled(X86_FEATURE_HYPERVISOR)) \
|
/openbmc/linux/arch/x86/kernel/fpu/ |
H A D | regset.c | 76 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 D | xstate.c | 146 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 D | internal.h | 10 return cpu_feature_enabled(X86_FEATURE_XSAVE); in use_xsave() 15 return cpu_feature_enabled(X86_FEATURE_FXSR); in use_fxsr()
|
H A D | core.c | 378 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 D | xstate.h | 19 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 D | init.c | 193 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 D | legacy.c | 16 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 D | shstk.c | 167 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 D | cet.c | 151 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 D | static_call.c | 84 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 D | process_64.c | 169 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 D | tsx.c | 121 } 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 D | aperfmperf.c | 387 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 D | common.c | 381 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 D | sched.h | 42 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 D | driver.c | 153 if (!cpu_feature_enabled(X86_FEATURE_SGX_LC)) in sgx_drv_init() 170 if (cpu_feature_enabled(X86_FEATURE_OSXSAVE)) { in sgx_drv_init()
|