Home
last modified time | relevance | path

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

/linux/arch/x86/include/asm/
A Dpkru.h19 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 Dspecial_insns.h83 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 Dpgtable.h1346 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 Dsvm.h283 u32 pkru; member
A Dprocessor.h529 u32 pkru; member
A Dkvm_host.h627 u32 pkru; member
/linux/arch/x86/kernel/
A Dprocess_64.c356 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 Dprocess.c176 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 Dcore.c281 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 Dxstate.c1211 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 Dapi.h140 …oid fpu_copy_guest_fpstate_to_uabi(struct fpu_guest *gfpu, void *buf, unsigned int size, u32 pkru);
A Dtypes.h251 u32 pkru; member
/linux/arch/x86/kvm/
A Dmmu.h286 pkru_bits = (vcpu->arch.pkru >> (pte_pkey * 2)) & 3; in permission_fault()
A Dx86.c929 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 Dsev.c590 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 Dcpuid.csv250 0xD, 0, EAX, 9, pkru, PKRU state

Completed in 58 milliseconds