Home
last modified time | relevance | path

Searched refs:iamr (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/arch/powerpc/include/asm/book3s/64/
Dkup.h226 return current->thread.regs->iamr; in current_thread_iamr()
236 unsigned long amr, iamr; in kuap_user_restore() local
250 iamr = mfspr(SPRN_IAMR); in kuap_user_restore()
251 if (iamr != regs->iamr) in kuap_user_restore()
263 mtspr(SPRN_IAMR, regs->iamr); in kuap_user_restore()
/linux-6.12.1/arch/powerpc/kernel/
Dsyscall.c39 unsigned long amr, iamr; in system_call_exception() local
46 iamr = mfspr(SPRN_IAMR); in system_call_exception()
48 regs->iamr = iamr; in system_call_exception()
Dasm-offsets.c302 STACK_PT_REGS_OFFSET(STACK_REGS_IAMR, iamr); in main()
445 OFFSET(VCPU_IAMR, kvm_vcpu, arch.iamr); in main()
Dprocess.c1640 current->thread.regs->iamr = default_iamr; in arch_setup_new_exec()
/linux-6.12.1/tools/testing/selftests/powerpc/ptrace/
Dcore-pkey.c55 unsigned long iamr; member
142 info->iamr |= 1ul << pkeyshift(pkey1); in child()
144 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child()
146 info->iamr &= ~(1ul << pkeyshift(pkey2) | 1ul << pkeyshift(pkey3)); in child()
250 FAIL_IF(regs[1] != info->iamr); in check_core_file()
273 info->iamr = regs[1]; in parent()
/linux-6.12.1/arch/powerpc/kvm/
Dbook3s_hv_p9_entry.c34 if (host_os_sprs->iamr != vcpu->arch.iamr) in load_spr_state()
35 mtspr(SPRN_IAMR, vcpu->arch.iamr); in load_spr_state()
75 vcpu->arch.iamr = mfspr(SPRN_IAMR); in store_spr_state()
150 host_os_sprs->iamr = mfspr(SPRN_IAMR); in save_p9_host_os_sprs()
171 if (host_os_sprs->iamr != vcpu->arch.iamr) in restore_p9_host_os_sprs()
172 mtspr(SPRN_IAMR, host_os_sprs->iamr); in restore_p9_host_os_sprs()
Dbook3s_hv.h9 unsigned long iamr; member
114 KVMPPC_BOOK3S_HV_VCPU_ACCESSOR(iamr, 64, KVMPPC_GSID_IAMR)
Dbook3s_hv_nestedv2.c182 rc = kvmppc_gse_put_u64(gsb, iden, vcpu->arch.iamr); in gs_msg_ops_vcpu_fill_info()
443 vcpu->arch.iamr = kvmppc_gse_get_u64(gse); in gs_msg_ops_vcpu_refresh_info()
Dbook3s_64_mmu_radix.c307 if (vcpu->arch.iamr & (1ul << 62)) in kvmppc_mmu_radix_xlate()
/linux-6.12.1/arch/powerpc/platforms/powernv/
Didle.c309 u64 iamr; member
381 sprs.iamr = mfspr(SPRN_IAMR); in power7_idle_insn()
399 mtspr(SPRN_IAMR, sprs.iamr); in power7_idle_insn()
603 u64 iamr; member
690 sprs.iamr = mfspr(SPRN_IAMR); in power9_idle_stop()
710 mtspr(SPRN_IAMR, sprs.iamr); in power9_idle_stop()
/linux-6.12.1/arch/powerpc/include/asm/
Dptrace.h74 unsigned long iamr; member
Dkvm_host.h594 ulong iamr; member
/linux-6.12.1/arch/powerpc/mm/book3s64/
Dpkeys.c331 current->thread.regs->iamr = old_iamr | new_iamr_bits; in init_iamr()
/linux-6.12.1/arch/powerpc/kernel/ptrace/
Dptrace-view.c529 membuf_store(&to, target->thread.regs->iamr); in pkey_get()