Home
last modified time | relevance | path

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

/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_64_mmu_host.c273 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_mmu_next_segment() local
280 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() local
327 svcpu->slb[slb_index].esid = 0; in kvmppc_mmu_map_segment()
[all …]
Dbook3s_pr.c135 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_core_vcpu_load_pr() local
136 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() local
165 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 …]
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-6.1.9/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.h118 static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu) in svcpu_put() argument