Home
last modified time | relevance | path

Searched refs:X86_FEATURE_OSPKE (Results 1 – 16 of 16) sorted by relevance

/openbmc/linux/arch/x86/include/asm/
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 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 Ddisabled-features.h38 # define DISABLE_OSPKE (1<<(X86_FEATURE_OSPKE & 31))
H A Dcpufeatures.h389 #define X86_FEATURE_OSPKE (16*32+ 4) /* OS Protection Keys Enable */ macro
/openbmc/linux/tools/testing/selftests/mm/
H A Dpkey-x86.h67 #define X86_FEATURE_OSPKE (1<<4) /* OS Protection Keys Enable */ macro
82 if (!(ecx & X86_FEATURE_OSPKE)) { in cpu_has_pkeys()
/openbmc/linux/tools/arch/x86/include/asm/
H A Ddisabled-features.h38 # define DISABLE_OSPKE (1<<(X86_FEATURE_OSPKE & 31))
H A Dcpufeatures.h380 #define X86_FEATURE_OSPKE (16*32+ 4) /* OS Protection Keys Enable */ macro
/openbmc/linux/arch/x86/mm/
H A Dpkeys.c177 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in create_init_pkru_value()
H A Dfault.c849 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in bad_area_access_from_pkeys()
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dstate_test.c213 GUEST_ASSERT(this_cpu_has(X86_FEATURE_OSPKE)); in guest_code()
/openbmc/linux/arch/x86/kernel/fpu/
H A Dxstate.c74 [XFEATURE_PKRU] = X86_FEATURE_OSPKE,
1014 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in arch_set_user_pkey_access()
/openbmc/linux/arch/x86/kernel/
H A Dprocess_64.c353 if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) in x86_pkru_load()
/openbmc/linux/arch/x86/kvm/
H A Dcpuid.c283 cpuid_entry_change(best, X86_FEATURE_OSPKE, in __kvm_update_cpuid_runtime()
648 if (!tdp_enabled || !boot_cpu_has(X86_FEATURE_OSPKE)) in kvm_set_cpu_caps()
/openbmc/linux/arch/x86/kernel/cpu/
H A Dcommon.c527 setup_force_cpu_cap(X86_FEATURE_OSPKE); in setup_pku()
529 } else if (!cpu_feature_enabled(X86_FEATURE_OSPKE)) { in setup_pku()
/openbmc/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dprocessor.h156 #define X86_FEATURE_OSPKE KVM_X86_CPU_FEATURE(0x7, 0, ECX, 4) macro