Searched refs:hgatp (Results 1 – 2 of 2) sorted by relevance
83 unsigned long pos, hgatp; in kvm_riscv_local_hfence_vvma_asid_gva() local90 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() local112 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() local130 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 …]
729 unsigned long hgatp = gstage_mode; in kvm_riscv_gstage_update_hgatp() local732 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()