Home
last modified time | relevance | path

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

/Linux-v5.10/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c271 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_next_segment() local
278 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() local
325 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()
[all …]
Dbook3s_pr.c134 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_load_pr() local
135 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() local
161 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 …]
Dbook3s_32_mmu_host.c308 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_map_segment() local
313 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() local
338 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()
/Linux-v5.10/arch/powerpc/include/asm/
Dkvm_book3s_32.h17 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument
Dkvm_book3s_64.h131 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument