Searched refs:svcpu (Results 1 – 5 of 5) sorted by relevance
273 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_next_segment() local280 for (i = 0; i < svcpu->slb_max; i++) { in kvmppc_mmu_next_segment()281 if (!(svcpu->slb[i].esid & SLB_ESID_V)) in kvmppc_mmu_next_segment()283 else if ((svcpu->slb[i].esid & ESID_MASK) == esid) { in kvmppc_mmu_next_segment()301 if ((svcpu->slb_max) == max_slb_size) in kvmppc_mmu_next_segment()304 r = svcpu->slb_max; in kvmppc_mmu_next_segment()305 svcpu->slb_max++; in kvmppc_mmu_next_segment()308 svcpu_put(svcpu); in kvmppc_mmu_next_segment()314 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local327 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()[all …]
135 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_load_pr() local136 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr()137 svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max; in kvmppc_core_vcpu_load_pr()138 svcpu->in_use = 0; in kvmppc_core_vcpu_load_pr()139 svcpu_put(svcpu); in kvmppc_core_vcpu_load_pr()164 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_put_pr() local165 if (svcpu->in_use) { in kvmppc_core_vcpu_put_pr()168 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr()169 to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max; in kvmppc_core_vcpu_put_pr()170 svcpu_put(svcpu); in kvmppc_core_vcpu_put_pr()[all …]
308 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local313 svcpu->sr[esid] = SR_INVALID; in kvmppc_mmu_map_segment()324 svcpu->sr[esid] = sr; in kvmppc_mmu_map_segment()329 svcpu_put(svcpu); in kvmppc_mmu_map_segment()336 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_flush_segments() local338 dprintk_sr("MMU: flushing all segments (%d)\n", ARRAY_SIZE(svcpu->sr)); in kvmppc_mmu_flush_segments()339 for (i = 0; i < ARRAY_SIZE(svcpu->sr); i++) in kvmppc_mmu_flush_segments()340 svcpu->sr[i] = SR_INVALID; in kvmppc_mmu_flush_segments()342 svcpu_put(svcpu); in kvmppc_mmu_flush_segments()
17 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument
118 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument