Home
last modified time | relevance | path

Searched refs:svcpu (Results 1 – 6 of 6) sorted by relevance

/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c269 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_next_segment() local
276 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() local
323 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()
[all …]
Dbook3s_pr.c97 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_load_pr() local
98 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() local
122 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 …]
Dbook3s_32_mmu_host.c319 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local
324 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() local
349 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()
/arch/powerpc/include/asm/
Dkvm_book3s_32.h28 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument
Dkvm_book3s.h195 extern void kvmppc_copy_to_svcpu(struct kvmppc_book3s_shadow_vcpu *svcpu,
198 struct kvmppc_book3s_shadow_vcpu *svcpu);
Dkvm_book3s_64.h30 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument