Home
last modified time | relevance | path

Searched refs:hgatp (Results 1 – 2 of 2) sorted by relevance

/linux/arch/riscv/kvm/
H A Dtlb.c83 unsigned long pos, hgatp; in kvm_riscv_local_hfence_vvma_asid_gva() local
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()
110 unsigned long hgatp; in kvm_riscv_local_hfence_vvma_asid_all() local
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()
123 unsigned long pos, hgatp; in kvm_riscv_local_hfence_vvma_gva() local
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()
149 unsigned long hgatp; in kvm_riscv_local_hfence_vvma_all() local
[all …]
H A Dmmu.c729 unsigned long hgatp = gstage_mode; in kvm_riscv_gstage_update_hgatp() local
732 hgatp |= (READ_ONCE(k->vmid.vmid) << HGATP_VMID_SHIFT) & HGATP_VMID; in kvm_riscv_gstage_update_hgatp()
733 hgatp |= (k->pgd_phys >> PAGE_SHIFT) & HGATP_PPN; in kvm_riscv_gstage_update_hgatp()
735 csr_write(CSR_HGATP, hgatp); in kvm_riscv_gstage_update_hgatp()