Searched refs:CSR_HGATP (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/arch/riscv/kvm/ ! |
D | vmid.c | 28 old = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect() 29 csr_write(CSR_HGATP, old | HGATP_VMID); in kvm_riscv_gstage_vmid_detect() 30 vmid_bits = csr_read(CSR_HGATP); in kvm_riscv_gstage_vmid_detect() 33 csr_write(CSR_HGATP, old); in kvm_riscv_gstage_vmid_detect()
|
D | tlb.c | 90 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_gva() 104 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_gva() 112 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_asid_all() 116 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_asid_all() 130 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_gva() 144 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_gva() 151 hgatp = csr_swap(CSR_HGATP, vmid << HGATP_VMID_SHIFT); in kvm_riscv_local_hfence_vvma_all() 155 csr_write(CSR_HGATP, hgatp); in kvm_riscv_local_hfence_vvma_all()
|
D | mmu.c | 755 csr_write(CSR_HGATP, hgatp); in kvm_riscv_gstage_update_hgatp() 765 csr_write(CSR_HGATP, HGATP_MODE_SV57X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 766 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV57X4) { in kvm_riscv_gstage_mode_detect() 773 csr_write(CSR_HGATP, HGATP_MODE_SV48X4 << HGATP_MODE_SHIFT); in kvm_riscv_gstage_mode_detect() 774 if ((csr_read(CSR_HGATP) >> HGATP_MODE_SHIFT) == HGATP_MODE_SV48X4) { in kvm_riscv_gstage_mode_detect() 780 csr_write(CSR_HGATP, 0); in kvm_riscv_gstage_mode_detect()
|
/linux-6.6.21/arch/riscv/include/asm/ ! |
D | csr.h | 326 #define CSR_HGATP 0x680 macro
|