Searched refs:pkru (Results 1 – 16 of 16) sorted by relevance
/linux/arch/x86/include/asm/ |
A D | pkru.h | 19 static inline bool __pkru_allows_read(u32 pkru, u16 pkey) in __pkru_allows_read() argument 22 return !(pkru & (PKRU_AD_BIT << pkru_pkey_bits)); in __pkru_allows_read() 25 static inline bool __pkru_allows_write(u32 pkru, u16 pkey) in __pkru_allows_write() argument 32 return !(pkru & ((PKRU_AD_BIT|PKRU_WD_BIT) << pkru_pkey_bits)); in __pkru_allows_write() 42 static inline void write_pkru(u32 pkru) in write_pkru() argument 50 if (pkru != rdpkru()) in write_pkru() 51 wrpkru(pkru); in write_pkru()
|
A D | special_insns.h | 83 u32 edx, pkru; in rdpkru() local 90 : "=a" (pkru), "=d" (edx) in rdpkru() 92 return pkru; in rdpkru() 95 static inline void wrpkru(u32 pkru) in wrpkru() argument 104 : : "a" (pkru), "c"(ecx), "d"(edx)); in wrpkru() 113 static inline void wrpkru(u32 pkru) in wrpkru() argument
|
A D | pgtable.h | 1346 u32 pkru = read_pkru(); in __pkru_allows_pkey() local 1348 if (!__pkru_allows_read(pkru, pkey)) in __pkru_allows_pkey() 1350 if (write && !__pkru_allows_write(pkru, pkey)) in __pkru_allows_pkey()
|
A D | svm.h | 283 u32 pkru; member
|
A D | processor.h | 529 u32 pkru; member
|
A D | kvm_host.h | 627 u32 pkru; member
|
/linux/arch/x86/kernel/ |
A D | process_64.c | 356 prev->pkru = rdpkru(); in x86_pkru_load() 362 if (prev->pkru != next->pkru) in x86_pkru_load() 363 wrpkru(next->pkru); in x86_pkru_load()
|
A D | process.c | 176 p->thread.pkru = pkru_get_init_value(); in copy_thread() 186 p->thread.pkru = read_pkru(); in copy_thread()
|
/linux/arch/x86/kernel/fpu/ |
A D | core.c | 281 unsigned int size, u32 pkru) in fpu_copy_guest_fpstate_to_uabi() argument 288 __copy_xstate_to_uabi_buf(mb, kstate, pkru, XSTATE_COPY_XSAVE); in fpu_copy_guest_fpstate_to_uabi() 325 *vpkru = xpkru->pkru; in fpu_copy_uabi_to_guest_fpstate()
|
A D | xstate.c | 1211 struct pkru_state pkru = {0}; in __copy_xstate_to_uabi_buf() local 1216 pkru.pkru = pkru_val; in __copy_xstate_to_uabi_buf() 1217 membuf_write(&to, &pkru, sizeof(pkru)); in __copy_xstate_to_uabi_buf() 1252 tsk->thread.pkru, copy_mode); in copy_xstate_to_uabi_buf()
|
/linux/arch/x86/include/asm/fpu/ |
A D | api.h | 140 …oid fpu_copy_guest_fpstate_to_uabi(struct fpu_guest *gfpu, void *buf, unsigned int size, u32 pkru);
|
A D | types.h | 251 u32 pkru; member
|
/linux/arch/x86/kvm/ |
A D | mmu.h | 286 pkru_bits = (vcpu->arch.pkru >> (pte_pkey * 2)) & 3; in permission_fault()
|
A D | x86.c | 929 vcpu->arch.pkru != vcpu->arch.host_pkru) in kvm_load_guest_xsave_state() 930 write_pkru(vcpu->arch.pkru); in kvm_load_guest_xsave_state() 942 vcpu->arch.pkru = rdpkru(); in kvm_load_host_xsave_state() 943 if (vcpu->arch.pkru != vcpu->arch.host_pkru) in kvm_load_host_xsave_state() 4853 vcpu->arch.pkru); in kvm_vcpu_ioctl_x86_get_xsave() 4864 supported_xcr0, &vcpu->arch.pkru); in kvm_vcpu_ioctl_x86_set_xsave()
|
/linux/arch/x86/kvm/svm/ |
A D | sev.c | 590 save->pkru = svm->vcpu.arch.pkru; in sev_es_sync_vmsa() 2921 hostsa->pkru = read_pkru(); in sev_es_prepare_guest_switch()
|
/linux/tools/arch/x86/kcpuid/ |
A D | cpuid.csv | 250 0xD, 0, EAX, 9, pkru, PKRU state
|
Completed in 58 milliseconds