Home
last modified time | relevance | path

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

/linux-6.6.21/arch/powerpc/kvm/
Dbook3s_mmu_hpte.c59 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
[all …]
Dbook3s_64_mmu_host.c391 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init_pr() local
397 vcpu3s->context_id[0] = err; in kvmppc_mmu_init_pr()
399 vcpu3s->proto_vsid_max = ((u64)(vcpu3s->context_id[0] + 1) in kvmppc_mmu_init_pr()
401 vcpu3s->proto_vsid_first = (u64)vcpu3s->context_id[0] << ESID_BITS; in kvmppc_mmu_init_pr()
402 vcpu3s->proto_vsid_next = vcpu3s->proto_vsid_first; in kvmppc_mmu_init_pr()
Dbook3s_32_mmu_host.c358 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init_pr() local
368 vcpu3s->context_id[i] = err; in kvmppc_mmu_init_pr()
372 vcpu3s->vsid_pool[(i * 16) + j] = CTX_TO_VSID(err, j); in kvmppc_mmu_init_pr()
375 vcpu3s->vsid_next = 0; in kvmppc_mmu_init_pr()
388 if (!vcpu3s->context_id[j]) in kvmppc_mmu_init_pr()
Dbook3s_pr.c1465 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvm_arch_vcpu_ioctl_get_sregs_pr() local
1481 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1482 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1492 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvm_arch_vcpu_ioctl_set_sregs_pr() local
1497 vcpu3s->sdr1 = sregs->u.s.sdr1; in kvm_arch_vcpu_ioctl_set_sregs_pr()
1518 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), false, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1520 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), true, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1522 kvmppc_set_bat(vcpu, &(vcpu3s->dbat[i]), false, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1524 kvmppc_set_bat(vcpu, &(vcpu3s->dbat[i]), true, in kvm_arch_vcpu_ioctl_set_sregs_pr()