Searched refs:svcpu (Results 1 – 6 of 6) sorted by relevance
283 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_next_segment() local290 for (i = 0; i < svcpu->slb_max; i++) { in kvmppc_mmu_next_segment()291 if (!(svcpu->slb[i].esid & SLB_ESID_V)) in kvmppc_mmu_next_segment()293 else if ((svcpu->slb[i].esid & ESID_MASK) == esid) { in kvmppc_mmu_next_segment()311 if ((svcpu->slb_max) == max_slb_size) in kvmppc_mmu_next_segment()314 r = svcpu->slb_max; in kvmppc_mmu_next_segment()315 svcpu->slb_max++; in kvmppc_mmu_next_segment()318 svcpu_put(svcpu); in kvmppc_mmu_next_segment()324 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local337 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()[all …]
98 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_load_pr() local99 memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb)); in kvmppc_core_vcpu_load_pr()100 svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max; in kvmppc_core_vcpu_load_pr()101 svcpu->in_use = 0; in kvmppc_core_vcpu_load_pr()102 svcpu_put(svcpu); in kvmppc_core_vcpu_load_pr()122 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_put_pr() local123 if (svcpu->in_use) { in kvmppc_core_vcpu_put_pr()124 kvmppc_copy_from_svcpu(vcpu, svcpu); in kvmppc_core_vcpu_put_pr()126 memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb)); in kvmppc_core_vcpu_put_pr()127 to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max; in kvmppc_core_vcpu_put_pr()[all …]
320 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local325 svcpu->sr[esid] = SR_INVALID; in kvmppc_mmu_map_segment()336 svcpu->sr[esid] = sr; in kvmppc_mmu_map_segment()341 svcpu_put(svcpu); in kvmppc_mmu_map_segment()348 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_flush_segments() local350 dprintk_sr("MMU: flushing all segments (%d)\n", ARRAY_SIZE(svcpu->sr)); in kvmppc_mmu_flush_segments()351 for (i = 0; i < ARRAY_SIZE(svcpu->sr); i++) in kvmppc_mmu_flush_segments()352 svcpu->sr[i] = SR_INVALID; in kvmppc_mmu_flush_segments()354 svcpu_put(svcpu); in kvmppc_mmu_flush_segments()
28 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument
251 extern void kvmppc_copy_to_svcpu(struct kvmppc_book3s_shadow_vcpu *svcpu,254 struct kvmppc_book3s_shadow_vcpu *svcpu);
36 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument