Home
last modified time | relevance | path

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

/linux/arch/arm64/kvm/
H A Dnested.c710 struct kvm_s2_mmu *s2_mmu; in get_s2_mmu_nested() local
715 s2_mmu = lookup_s2_mmu(vcpu); in get_s2_mmu_nested()
716 if (s2_mmu) in get_s2_mmu_nested()
727 s2_mmu = &kvm->arch.nested_mmus[i % kvm->arch.nested_mmus_size]; in get_s2_mmu_nested()
729 if (atomic_read(&s2_mmu->refcnt) == 0) in get_s2_mmu_nested()
732 BUG_ON(atomic_read(&s2_mmu->refcnt)); /* We have struct MMUs to spare */ in get_s2_mmu_nested()
738 if (kvm_s2_mmu_valid(s2_mmu)) in get_s2_mmu_nested()
739 s2_mmu->pending_unmap = true; in get_s2_mmu_nested()
749 s2_mmu->tlb_vttbr = vcpu_read_sys_reg(vcpu, VTTBR_EL2) & ~VTTBR_CNP_BIT; in get_s2_mmu_nested()
750 s2_mmu->tlb_vtcr = vcpu_read_sys_reg(vcpu, VTCR_EL2); in get_s2_mmu_nested()
[all …]