Home
last modified time | relevance | path

Searched refs:rdpkru (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/tools/testing/selftests/x86/
Dpkey-helpers.h81 #define rdpkru() _rdpkru(__LINE__) macro
99 rdpkru(); in wrpkru()
111 unsigned int pkru = rdpkru(); in __pkey_access_allow()
119 dprintf4("pkru now: %08x\n", rdpkru()); in __pkey_access_allow()
125 long pkru = rdpkru(); in __pkey_write_allow()
134 dprintf4("pkru now: %08x\n", rdpkru()); in __pkey_write_allow()
Dprotection_keys.c452 u32 orig_pkru = rdpkru(); in pkey_disable_set()
478 dprintf1("%s(%d) pkru: 0x%x\n", __func__, pkey, rdpkru()); in pkey_disable_set()
480 pkey_assert(rdpkru() > orig_pkru); in pkey_disable_set()
490 u32 orig_pkru = rdpkru(); in pkey_disable_clear()
509 dprintf1("%s(%d) pkru: 0x%x\n", __func__, pkey, rdpkru()); in pkey_disable_clear()
511 assert(rdpkru() > orig_pkru); in pkey_disable_clear()
588 rdpkru(); in alloc_pkey()
755 rdpkru(); in malloc_pkey_with_mprotect()
764 rdpkru(); in malloc_pkey_with_mprotect()
1018 rdpkru(); in test_read_of_access_disabled_region()
[all …]
/Linux-v5.4/arch/x86/include/asm/
Dspecial_insns.h77 static inline u32 rdpkru(void) in rdpkru() function
110 if (pkru == rdpkru()) in __write_pkru()
117 static inline u32 rdpkru(void) in rdpkru() function
Dpgtable.h132 return rdpkru(); in read_pkru()
/Linux-v5.4/arch/x86/lib/
Dx86-opcode-map.txt951 5: rdpkru (110),(11B) | wrpkru (111),(11B)
/Linux-v5.4/tools/arch/x86/lib/
Dx86-opcode-map.txt951 5: rdpkru (110),(11B) | wrpkru (111),(11B)
/Linux-v5.4/arch/x86/kvm/vmx/
Dvmx.c6644 vcpu->arch.pkru = rdpkru(); in vmx_vcpu_run()