Home
last modified time | relevance | path

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

/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_32_mmu_host.c51 volatile u32 *pteg; in kvmppc_mmu_invalidate_pte() local
54 pteg = (u32*)pte->slot; in kvmppc_mmu_invalidate_pte()
55 pteg[0] = 0; in kvmppc_mmu_invalidate_pte()
110 ulong pteg = htab; in kvmppc_mmu_get_pteg() local
120 pteg |= hash; in kvmppc_mmu_get_pteg()
123 htab, hash, htabmask, pteg); in kvmppc_mmu_get_pteg()
125 return (u32*)pteg; in kvmppc_mmu_get_pteg()
137 volatile u32 *pteg; in kvmppc_mmu_map_page() local
176 pteg = kvmppc_mmu_get_pteg(vcpu, vsid, eaddr, primary); in kvmppc_mmu_map_page()
179 if (!evict && (pteg[rr] & PTE_V)) { in kvmppc_mmu_map_page()
[all …]
Dbook3s_pr_papr.c40 __be64 pteg[2 * 8]; in kvmppc_h_pr_enter() local
51 if (copy_from_user(pteg, (void __user *)pteg_addr, sizeof(pteg))) in kvmppc_h_pr_enter()
53 hpte = pteg; in kvmppc_h_pr_enter()
91 unsigned long v = 0, pteg, rb; in kvmppc_h_pr_remove() local
95 pteg = get_pteg_addr(vcpu, pte_index); in kvmppc_h_pr_remove()
98 if (copy_from_user(pte, (void __user *)pteg, sizeof(pte))) in kvmppc_h_pr_remove()
110 if (copy_to_user((void __user *)pteg, &v, sizeof(v))) in kvmppc_h_pr_remove()
155 unsigned long pteg, rb, flags; in kvmppc_h_pr_bulk_remove() local
178 pteg = get_pteg_addr(vcpu, tsh & H_BULK_REMOVE_PTEX); in kvmppc_h_pr_bulk_remove()
179 if (copy_from_user(pte, (void __user *)pteg, sizeof(pte))) { in kvmppc_h_pr_bulk_remove()
[all …]
Dbook3s_32_mmu.c98 u32 page, hash, pteg, htabmask; in kvmppc_mmu_book3s_32_get_pteg() local
109 pteg = (vcpu_book3s->sdr1 & 0xffff0000) | hash; in kvmppc_mmu_book3s_32_get_pteg()
112 kvmppc_get_pc(vcpu), eaddr, vcpu_book3s->sdr1, pteg, in kvmppc_mmu_book3s_32_get_pteg()
115 r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT); in kvmppc_mmu_book3s_32_get_pteg()
118 return r | (pteg & ~PAGE_MASK); in kvmppc_mmu_book3s_32_get_pteg()
188 u32 pteg[16]; in kvmppc_mmu_book3s_32_xlate_pte() local
209 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_32_xlate_pte()
216 pte0 = be32_to_cpu(pteg[i]); in kvmppc_mmu_book3s_32_xlate_pte()
217 pte1 = be32_to_cpu(pteg[i + 1]); in kvmppc_mmu_book3s_32_xlate_pte()
282 i, be32_to_cpu(pteg[i]), in kvmppc_mmu_book3s_32_xlate_pte()
[all …]
Dbook3s_64_mmu.c121 u64 hash, pteg, htabsize; in kvmppc_mmu_book3s_64_get_pteg() local
137 pteg = vcpu_book3s->sdr1 & 0xfffffffffffc0000ULL; in kvmppc_mmu_book3s_64_get_pteg()
138 pteg |= hash; in kvmppc_mmu_book3s_64_get_pteg()
141 page, vcpu_book3s->sdr1, pteg, slbe->vsid); in kvmppc_mmu_book3s_64_get_pteg()
146 r = pteg; in kvmppc_mmu_book3s_64_get_pteg()
148 r = gfn_to_hva(vcpu->kvm, pteg >> PAGE_SHIFT); in kvmppc_mmu_book3s_64_get_pteg()
152 return r | (pteg & ~PAGE_MASK); in kvmppc_mmu_book3s_64_get_pteg()
197 u64 pteg[16]; in kvmppc_mmu_book3s_64_xlate() local
251 if(copy_from_user(pteg, (void __user *)ptegp, sizeof(pteg))) { in kvmppc_mmu_book3s_64_xlate()
263 u64 pte0 = be64_to_cpu(pteg[i]); in kvmppc_mmu_book3s_64_xlate()
[all …]
Dbook3s_64_mmu_hv.c1238 unsigned long apsize, avpn, pteg, hash; in resize_hpt_rehash_hpte() local
1311 pteg = idx / HPTES_PER_GROUP; in resize_hpt_rehash_hpte()
1313 pteg = ~pteg; in resize_hpt_rehash_hpte()
1323 offset |= ((vsid ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
1333 offset |= ((vsid ^ (vsid << 25) ^ pteg) & old_hash_mask) << pshift; in resize_hpt_rehash_hpte()
/linux-6.6.21/arch/powerpc/mm/book3s64/
Dhash_native.c667 unsigned long avpn, pteg, vpi; in hpte_decode() local
691 pteg = slot / HPTES_PER_GROUP; in hpte_decode()
693 pteg = ~pteg; in hpte_decode()
702 vpi = (vsid ^ pteg) & htab_hash_mask; in hpte_decode()
712 vpi = (vsid ^ (vsid << 25) ^ pteg) & htab_hash_mask; in hpte_decode()