Home
last modified time | relevance | path

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

/linux-6.12.1/arch/powerpc/kvm/
Dbook3s_32_mmu_host.c266 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in create_sid_map() local
286 if (vcpu_book3s->vsid_next >= VSID_POOL_SIZE) { in create_sid_map()
287 vcpu_book3s->vsid_next = 0; in create_sid_map()
288 memset(vcpu_book3s->sid_map, 0, in create_sid_map()
293 map->host_vsid = vcpu_book3s->vsid_pool[vcpu_book3s->vsid_next]; in create_sid_map()
294 vcpu_book3s->vsid_next++; in create_sid_map()
Dbook3s_32_mmu.c97 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_32_get_pteg() local
102 htabmask = ((vcpu_book3s->sdr1 & 0x1FF) << 16) | 0xFFC0; in kvmppc_mmu_book3s_32_get_pteg()
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()
131 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_32_xlate_bat() local
137 bat = &vcpu_book3s->dbat[i]; in kvmppc_mmu_book3s_32_xlate_bat()
139 bat = &vcpu_book3s->ibat[i]; in kvmppc_mmu_book3s_32_xlate_bat()
Dbook3s_64_mmu_host.c229 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in create_sid_map() local
249 if (vcpu_book3s->proto_vsid_next == vcpu_book3s->proto_vsid_max) { in create_sid_map()
250 vcpu_book3s->proto_vsid_next = vcpu_book3s->proto_vsid_first; in create_sid_map()
251 memset(vcpu_book3s->sid_map, 0, in create_sid_map()
260 map->host_vsid = vsid_scramble(vcpu_book3s->proto_vsid_next++, in create_sid_map()
Dbook3s_64_mmu.c120 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_mmu_book3s_64_get_pteg() local
126 htabsize = ((1 << ((vcpu_book3s->sdr1 & 0x1f) + 11)) - 1); in kvmppc_mmu_book3s_64_get_pteg()
137 pteg = vcpu_book3s->sdr1 & 0xfffffffffffc0000ULL; in kvmppc_mmu_book3s_64_get_pteg()
141 page, vcpu_book3s->sdr1, pteg, slbe->vsid); in kvmppc_mmu_book3s_64_get_pteg()
Dbook3s_pr_papr.c25 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in get_pteg_addr() local
29 pte_index &= ((1 << ((vcpu_book3s->sdr1 & 0x1f) + 11)) - 1) << 7 | 0x70; in get_pteg_addr()
30 pteg_addr = vcpu_book3s->sdr1 & 0xfffffffffffc0000ULL; in get_pteg_addr()
Dbook3s_emulate.c655 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_find_bat() local
660 bat = &vcpu_book3s->ibat[(sprn - SPRN_IBAT0U) / 2]; in kvmppc_find_bat()
663 bat = &vcpu_book3s->ibat[4 + ((sprn - SPRN_IBAT4U) / 2)]; in kvmppc_find_bat()
666 bat = &vcpu_book3s->dbat[(sprn - SPRN_DBAT0U) / 2]; in kvmppc_find_bat()
669 bat = &vcpu_book3s->dbat[4 + ((sprn - SPRN_DBAT4U) / 2)]; in kvmppc_find_bat()
Dbook3s_pr.c1731 struct kvmppc_vcpu_book3s *vcpu_book3s; in kvmppc_core_vcpu_create_pr() local
1737 vcpu_book3s = vzalloc(sizeof(struct kvmppc_vcpu_book3s)); in kvmppc_core_vcpu_create_pr()
1738 if (!vcpu_book3s) in kvmppc_core_vcpu_create_pr()
1740 vcpu->arch.book3s = vcpu_book3s; in kvmppc_core_vcpu_create_pr()
1793 vfree(vcpu_book3s); in kvmppc_core_vcpu_create_pr()
1800 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_core_vcpu_free_pr() local
1807 vfree(vcpu_book3s); in kvmppc_core_vcpu_free_pr()