Lines Matching refs:vcpu3s
59 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_cache_map() local
63 spin_lock(&vcpu3s->mmu_lock); in kvmppc_mmu_hpte_cache_map()
67 hlist_add_head_rcu(&pte->list_pte, &vcpu3s->hpte_hash_pte[index]); in kvmppc_mmu_hpte_cache_map()
72 &vcpu3s->hpte_hash_pte_long[index]); in kvmppc_mmu_hpte_cache_map()
76 hlist_add_head_rcu(&pte->list_vpte, &vcpu3s->hpte_hash_vpte[index]); in kvmppc_mmu_hpte_cache_map()
81 &vcpu3s->hpte_hash_vpte_long[index]); in kvmppc_mmu_hpte_cache_map()
87 &vcpu3s->hpte_hash_vpte_64k[index]); in kvmppc_mmu_hpte_cache_map()
90 vcpu3s->hpte_cache_count++; in kvmppc_mmu_hpte_cache_map()
92 spin_unlock(&vcpu3s->mmu_lock); in kvmppc_mmu_hpte_cache_map()
103 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in invalidate_pte() local
110 spin_lock(&vcpu3s->mmu_lock); in invalidate_pte()
114 spin_unlock(&vcpu3s->mmu_lock); in invalidate_pte()
125 vcpu3s->hpte_cache_count--; in invalidate_pte()
127 spin_unlock(&vcpu3s->mmu_lock); in invalidate_pte()
134 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_all() local
141 struct hlist_head *list = &vcpu3s->hpte_hash_vpte_long[i]; in kvmppc_mmu_pte_flush_all()
152 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_page() local
157 list = &vcpu3s->hpte_hash_pte[kvmppc_mmu_hash_pte(guest_ea)]; in kvmppc_mmu_pte_flush_page()
171 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_flush_long() local
176 list = &vcpu3s->hpte_hash_pte_long[ in kvmppc_mmu_pte_flush_long()
214 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_short() local
219 list = &vcpu3s->hpte_hash_vpte[kvmppc_mmu_hash_vpte(guest_vp)]; in kvmppc_mmu_pte_vflush_short()
235 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_64k() local
240 list = &vcpu3s->hpte_hash_vpte_64k[ in kvmppc_mmu_pte_vflush_64k()
257 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_vflush_long() local
262 list = &vcpu3s->hpte_hash_vpte_long[ in kvmppc_mmu_pte_vflush_long()
300 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_pte_pflush() local
309 struct hlist_head *list = &vcpu3s->hpte_hash_vpte_long[i]; in kvmppc_mmu_pte_pflush()
322 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_cache_next() local
325 if (vcpu3s->hpte_cache_count == HPTEG_CACHE_NUM) in kvmppc_mmu_hpte_cache_next()
353 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_hpte_init() local
356 kvmppc_mmu_hpte_init_hash(vcpu3s->hpte_hash_pte, in kvmppc_mmu_hpte_init()
357 ARRAY_SIZE(vcpu3s->hpte_hash_pte)); in kvmppc_mmu_hpte_init()
358 kvmppc_mmu_hpte_init_hash(vcpu3s->hpte_hash_pte_long, in kvmppc_mmu_hpte_init()
359 ARRAY_SIZE(vcpu3s->hpte_hash_pte_long)); in kvmppc_mmu_hpte_init()
360 kvmppc_mmu_hpte_init_hash(vcpu3s->hpte_hash_vpte, in kvmppc_mmu_hpte_init()
361 ARRAY_SIZE(vcpu3s->hpte_hash_vpte)); in kvmppc_mmu_hpte_init()
362 kvmppc_mmu_hpte_init_hash(vcpu3s->hpte_hash_vpte_long, in kvmppc_mmu_hpte_init()
363 ARRAY_SIZE(vcpu3s->hpte_hash_vpte_long)); in kvmppc_mmu_hpte_init()
365 kvmppc_mmu_hpte_init_hash(vcpu3s->hpte_hash_vpte_64k, in kvmppc_mmu_hpte_init()
366 ARRAY_SIZE(vcpu3s->hpte_hash_vpte_64k)); in kvmppc_mmu_hpte_init()
369 spin_lock_init(&vcpu3s->mmu_lock); in kvmppc_mmu_hpte_init()