Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/arch/x86/include/asm/
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()
107 static inline void __write_pkru(u32 pkru) in __write_pkru() argument
113 if (pkru == rdpkru()) in __write_pkru()
116 wrpkru(pkru); in __write_pkru()
125 static inline void __write_pkru(u32 pkru) in __write_pkru() argument
Dpgtable.h137 static inline void write_pkru(u32 pkru) in write_pkru() argument
153 pk->pkru = pkru; in write_pkru()
154 __write_pkru(pkru); in write_pkru()
1373 static inline bool __pkru_allows_read(u32 pkru, u16 pkey) in __pkru_allows_read() argument
1376 return !(pkru & (PKRU_AD_BIT << pkru_pkey_bits)); in __pkru_allows_read()
1379 static inline bool __pkru_allows_write(u32 pkru, u16 pkey) in __pkru_allows_write() argument
1386 return !(pkru & ((PKRU_AD_BIT|PKRU_WD_BIT) << pkru_pkey_bits)); in __pkru_allows_write()
1401 u32 pkru = read_pkru(); in __pkru_allows_pkey() local
1403 if (!__pkru_allows_read(pkru, pkey)) in __pkru_allows_pkey()
1405 if (write && !__pkru_allows_write(pkru, pkey)) in __pkru_allows_pkey()
Dkvm_host.h542 u32 pkru; member
/kernel/linux/linux-5.10/arch/x86/mm/
Dpkeys.c183 pk->pkru = new_init_pkru; in init_pkru_write_file()
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/
Dtypes.h236 u32 pkru; member
Dinternal.h585 pkru_val = pk ? pk->pkru : 0; in switch_fpu_finish()
/kernel/linux/linux-5.10/arch/x86/kvm/
Dmmu.h202 pkru_bits = (vcpu->arch.pkru >> (pte_pkey * 2)) & 3; in permission_fault()
Dx86.c911 vcpu->arch.pkru != vcpu->arch.host_pkru) in kvm_load_guest_xsave_state()
912 __write_pkru(vcpu->arch.pkru); in kvm_load_guest_xsave_state()
921 vcpu->arch.pkru = rdpkru(); in kvm_load_host_xsave_state()
922 if (vcpu->arch.pkru != vcpu->arch.host_pkru) in kvm_load_host_xsave_state()
4533 memcpy(dest + offset, &vcpu->arch.pkru, in fill_xsave()
4534 sizeof(vcpu->arch.pkru)); in fill_xsave()
4576 memcpy(&vcpu->arch.pkru, src + offset, in load_xsave()
4577 sizeof(vcpu->arch.pkru)); in load_xsave()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/
Dcommon.c484 pk->pkru = init_pkru_value; in setup_pku()