Home
last modified time | relevance | path

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

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