Home
last modified time | relevance | path

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

/Linux-v5.10/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.c389 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init_pr() local
395 vcpu3s->context_id[0] = err; in kvmppc_mmu_init_pr()
397 vcpu3s->proto_vsid_max = ((u64)(vcpu3s->context_id[0] + 1) in kvmppc_mmu_init_pr()
399 vcpu3s->proto_vsid_first = (u64)vcpu3s->context_id[0] << ESID_BITS; in kvmppc_mmu_init_pr()
400 vcpu3s->proto_vsid_next = vcpu3s->proto_vsid_first; in kvmppc_mmu_init_pr()
Dbook3s_32_mmu_host.c361 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvmppc_mmu_init_pr() local
371 vcpu3s->context_id[i] = err; in kvmppc_mmu_init_pr()
375 vcpu3s->vsid_pool[(i * 16) + j] = CTX_TO_VSID(err, j); in kvmppc_mmu_init_pr()
378 vcpu3s->vsid_next = 0; in kvmppc_mmu_init_pr()
391 if (!vcpu3s->context_id[j]) in kvmppc_mmu_init_pr()
Dbook3s_pr.c1477 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvm_arch_vcpu_ioctl_get_sregs_pr() local
1493 sregs->u.s.ppc32.ibat[i] = vcpu3s->ibat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1494 sregs->u.s.ppc32.dbat[i] = vcpu3s->dbat[i].raw; in kvm_arch_vcpu_ioctl_get_sregs_pr()
1504 struct kvmppc_vcpu_book3s *vcpu3s = to_book3s(vcpu); in kvm_arch_vcpu_ioctl_set_sregs_pr() local
1509 vcpu3s->sdr1 = sregs->u.s.sdr1; in kvm_arch_vcpu_ioctl_set_sregs_pr()
1530 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), false, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1532 kvmppc_set_bat(vcpu, &(vcpu3s->ibat[i]), true, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1534 kvmppc_set_bat(vcpu, &(vcpu3s->dbat[i]), false, in kvm_arch_vcpu_ioctl_set_sregs_pr()
1536 kvmppc_set_bat(vcpu, &(vcpu3s->dbat[i]), true, in kvm_arch_vcpu_ioctl_set_sregs_pr()