Lines Matching defs:pkey
23 #define NR_RESERVED_PKEYS_4K 27 /* pkey-0, pkey-1, exec-only-pkey
26 #define NR_RESERVED_PKEYS_64K_3KEYS 3 /* PowerNV and KVM: pkey-0,
27 pkey-1 and exec-only key */
28 #define NR_RESERVED_PKEYS_64K_4KEYS 4 /* PowerVM: pkey-0, pkey-1,
29 pkey-31 and exec-only key */
34 static inline u32 pkey_bit_position(int pkey)
36 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY;
58 dprintf4("%s() pkey register after changing %016llx to %016llx\n",
91 void expect_fault_on_read_execonly_key(void *p1, int pkey)
105 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey)
110 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__,
111 size, prot, pkey);
112 pkey_assert(pkey < NR_PKEYS);
122 ret = mprotect_pkey((void *)ptr, PAGE_SIZE, prot, pkey);
126 dprintf1("%s() for pkey %d @ %p\n", __func__, pkey, ptr);