Searched refs:svcpu (Results 1 – 6 of 6) sorted by relevance
269 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_next_segment() local276 for (i = 0; i < svcpu->slb_max; i++) { in kvmppc_mmu_next_segment()277 if (!(svcpu->slb[i].esid & SLB_ESID_V)) in kvmppc_mmu_next_segment()279 else if ((svcpu->slb[i].esid & ESID_MASK) == esid) { in kvmppc_mmu_next_segment()297 if ((svcpu->slb_max) == max_slb_size) in kvmppc_mmu_next_segment()300 r = svcpu->slb_max; in kvmppc_mmu_next_segment()301 svcpu->slb_max++; in kvmppc_mmu_next_segment()304 svcpu_put(svcpu); in kvmppc_mmu_next_segment()310 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local323 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()[all …]
97 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_load_pr() local98 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr()99 svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max; in kvmppc_core_vcpu_load_pr()100 svcpu->in_use = 0; in kvmppc_core_vcpu_load_pr()101 svcpu_put(svcpu); in kvmppc_core_vcpu_load_pr()121 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_put_pr() local122 if (svcpu->in_use) { in kvmppc_core_vcpu_put_pr()123 kvmppc_copy_from_svcpu(vcpu, svcpu); in kvmppc_core_vcpu_put_pr()125 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr()126 to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max; in kvmppc_core_vcpu_put_pr()[all …]
319 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local324 svcpu->sr[esid] = SR_INVALID; in kvmppc_mmu_map_segment()335 svcpu->sr[esid] = sr; in kvmppc_mmu_map_segment()340 svcpu_put(svcpu); in kvmppc_mmu_map_segment()347 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_flush_segments() local349 dprintk_sr("MMU: flushing all segments (%d)\n", ARRAY_SIZE(svcpu->sr)); in kvmppc_mmu_flush_segments()350 for (i = 0; i < ARRAY_SIZE(svcpu->sr); i++) in kvmppc_mmu_flush_segments()351 svcpu->sr[i] = SR_INVALID; in kvmppc_mmu_flush_segments()353 svcpu_put(svcpu); in kvmppc_mmu_flush_segments()
28 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument
195 extern void kvmppc_copy_to_svcpu(struct kvmppc_book3s_shadow_vcpu *svcpu,198 struct kvmppc_book3s_shadow_vcpu *svcpu);
30 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument