Searched refs:svcpu (Results 1 – 5 of 5) sorted by relevance
271 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_next_segment() local278 for (i = 0; i < svcpu->slb_max; i++) { in kvmppc_mmu_next_segment()279 if (!(svcpu->slb[i].esid & SLB_ESID_V)) in kvmppc_mmu_next_segment()281 else if ((svcpu->slb[i].esid & ESID_MASK) == esid) { in kvmppc_mmu_next_segment()299 if ((svcpu->slb_max) == max_slb_size) in kvmppc_mmu_next_segment()302 r = svcpu->slb_max; in kvmppc_mmu_next_segment()303 svcpu->slb_max++; in kvmppc_mmu_next_segment()306 svcpu_put(svcpu); in kvmppc_mmu_next_segment()312 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local325 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()[all …]
134 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_load_pr() local135 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr()136 svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max; in kvmppc_core_vcpu_load_pr()137 svcpu->in_use = 0; in kvmppc_core_vcpu_load_pr()138 svcpu_put(svcpu); in kvmppc_core_vcpu_load_pr()160 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_put_pr() local161 if (svcpu->in_use) { in kvmppc_core_vcpu_put_pr()164 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr()165 to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max; in kvmppc_core_vcpu_put_pr()166 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
131 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument