Searched refs:vcpu_book3s (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.10/arch/powerpc/kvm/ |
D | book3s_32_mmu.c | 97 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()
|
D | book3s_32_mmu_host.c | 266 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()
|
D | book3s_64_mmu_host.c | 227 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in create_sid_map() local 247 if (vcpu_book3s->proto_vsid_next == vcpu_book3s->proto_vsid_max) { in create_sid_map() 248 vcpu_book3s->proto_vsid_next = vcpu_book3s->proto_vsid_first; in create_sid_map() 249 memset(vcpu_book3s->sid_map, 0, in create_sid_map() 258 map->host_vsid = vsid_scramble(vcpu_book3s->proto_vsid_next++, in create_sid_map()
|
D | book3s_pr_papr.c | 25 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()
|
D | book3s_64_mmu.c | 120 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()
|
D | book3s_emulate.c | 659 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_find_bat() local 664 bat = &vcpu_book3s->ibat[(sprn - SPRN_IBAT0U) / 2]; in kvmppc_find_bat() 667 bat = &vcpu_book3s->ibat[4 + ((sprn - SPRN_IBAT4U) / 2)]; in kvmppc_find_bat() 670 bat = &vcpu_book3s->dbat[(sprn - SPRN_DBAT0U) / 2]; in kvmppc_find_bat() 673 bat = &vcpu_book3s->dbat[4 + ((sprn - SPRN_DBAT4U) / 2)]; in kvmppc_find_bat()
|
D | book3s_pr.c | 1748 struct kvmppc_vcpu_book3s *vcpu_book3s; in kvmppc_core_vcpu_create_pr() local 1754 vcpu_book3s = vzalloc(sizeof(struct kvmppc_vcpu_book3s)); in kvmppc_core_vcpu_create_pr() 1755 if (!vcpu_book3s) in kvmppc_core_vcpu_create_pr() 1757 vcpu->arch.book3s = vcpu_book3s; in kvmppc_core_vcpu_create_pr() 1810 vfree(vcpu_book3s); in kvmppc_core_vcpu_create_pr() 1817 struct kvmppc_vcpu_book3s *vcpu_book3s = to_book3s(vcpu); in kvmppc_core_vcpu_free_pr() local 1824 vfree(vcpu_book3s); in kvmppc_core_vcpu_free_pr()
|