Lines Matching refs:pkey
26 #define NR_RESERVED_PKEYS_4K 27 /* pkey-0, pkey-1, exec-only-pkey
29 #define NR_RESERVED_PKEYS_64K_3KEYS 3 /* PowerNV and KVM: pkey-0,
30 pkey-1 and exec-only key */
31 #define NR_RESERVED_PKEYS_64K_4KEYS 4 /* PowerVM: pkey-0, pkey-1,
32 pkey-31 and exec-only key */
37 static inline u32 pkey_bit_position(int pkey)
39 return (NR_PKEYS - pkey - 1) * PKEY_BITS_PER_PKEY;
61 dprintf4("%s() pkey register after changing %016llx to %016llx\n",
94 void expect_fault_on_read_execonly_key(void *p1, int pkey)
108 void *malloc_pkey_with_mprotect_subpage(long size, int prot, u16 pkey)
113 dprintf1("doing %s(size=%ld, prot=0x%x, pkey=%d)\n", __func__,
114 size, prot, pkey);
115 pkey_assert(pkey < NR_PKEYS);
125 ret = mprotect_pkey((void *)ptr, PAGE_SIZE, prot, pkey);
129 dprintf1("%s() for pkey %d @ %p\n", __func__, pkey, ptr);