Lines Matching refs:svcpu

134 	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()
187 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_copy_to_svcpu() local
189 svcpu->gpr[0] = vcpu->arch.regs.gpr[0]; in kvmppc_copy_to_svcpu()
190 svcpu->gpr[1] = vcpu->arch.regs.gpr[1]; in kvmppc_copy_to_svcpu()
191 svcpu->gpr[2] = vcpu->arch.regs.gpr[2]; in kvmppc_copy_to_svcpu()
192 svcpu->gpr[3] = vcpu->arch.regs.gpr[3]; in kvmppc_copy_to_svcpu()
193 svcpu->gpr[4] = vcpu->arch.regs.gpr[4]; in kvmppc_copy_to_svcpu()
194 svcpu->gpr[5] = vcpu->arch.regs.gpr[5]; in kvmppc_copy_to_svcpu()
195 svcpu->gpr[6] = vcpu->arch.regs.gpr[6]; in kvmppc_copy_to_svcpu()
196 svcpu->gpr[7] = vcpu->arch.regs.gpr[7]; in kvmppc_copy_to_svcpu()
197 svcpu->gpr[8] = vcpu->arch.regs.gpr[8]; in kvmppc_copy_to_svcpu()
198 svcpu->gpr[9] = vcpu->arch.regs.gpr[9]; in kvmppc_copy_to_svcpu()
199 svcpu->gpr[10] = vcpu->arch.regs.gpr[10]; in kvmppc_copy_to_svcpu()
200 svcpu->gpr[11] = vcpu->arch.regs.gpr[11]; in kvmppc_copy_to_svcpu()
201 svcpu->gpr[12] = vcpu->arch.regs.gpr[12]; in kvmppc_copy_to_svcpu()
202 svcpu->gpr[13] = vcpu->arch.regs.gpr[13]; in kvmppc_copy_to_svcpu()
203 svcpu->cr = vcpu->arch.regs.ccr; in kvmppc_copy_to_svcpu()
204 svcpu->xer = vcpu->arch.regs.xer; in kvmppc_copy_to_svcpu()
205 svcpu->ctr = vcpu->arch.regs.ctr; in kvmppc_copy_to_svcpu()
206 svcpu->lr = vcpu->arch.regs.link; in kvmppc_copy_to_svcpu()
207 svcpu->pc = vcpu->arch.regs.nip; in kvmppc_copy_to_svcpu()
209 svcpu->shadow_fscr = vcpu->arch.shadow_fscr; in kvmppc_copy_to_svcpu()
219 svcpu->in_use = true; in kvmppc_copy_to_svcpu()
221 svcpu_put(svcpu); in kvmppc_copy_to_svcpu()
259 struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu); in kvmppc_copy_from_svcpu() local
268 if (!svcpu->in_use) in kvmppc_copy_from_svcpu()
271 vcpu->arch.regs.gpr[0] = svcpu->gpr[0]; in kvmppc_copy_from_svcpu()
272 vcpu->arch.regs.gpr[1] = svcpu->gpr[1]; in kvmppc_copy_from_svcpu()
273 vcpu->arch.regs.gpr[2] = svcpu->gpr[2]; in kvmppc_copy_from_svcpu()
274 vcpu->arch.regs.gpr[3] = svcpu->gpr[3]; in kvmppc_copy_from_svcpu()
275 vcpu->arch.regs.gpr[4] = svcpu->gpr[4]; in kvmppc_copy_from_svcpu()
276 vcpu->arch.regs.gpr[5] = svcpu->gpr[5]; in kvmppc_copy_from_svcpu()
277 vcpu->arch.regs.gpr[6] = svcpu->gpr[6]; in kvmppc_copy_from_svcpu()
278 vcpu->arch.regs.gpr[7] = svcpu->gpr[7]; in kvmppc_copy_from_svcpu()
279 vcpu->arch.regs.gpr[8] = svcpu->gpr[8]; in kvmppc_copy_from_svcpu()
280 vcpu->arch.regs.gpr[9] = svcpu->gpr[9]; in kvmppc_copy_from_svcpu()
281 vcpu->arch.regs.gpr[10] = svcpu->gpr[10]; in kvmppc_copy_from_svcpu()
282 vcpu->arch.regs.gpr[11] = svcpu->gpr[11]; in kvmppc_copy_from_svcpu()
283 vcpu->arch.regs.gpr[12] = svcpu->gpr[12]; in kvmppc_copy_from_svcpu()
284 vcpu->arch.regs.gpr[13] = svcpu->gpr[13]; in kvmppc_copy_from_svcpu()
285 vcpu->arch.regs.ccr = svcpu->cr; in kvmppc_copy_from_svcpu()
286 vcpu->arch.regs.xer = svcpu->xer; in kvmppc_copy_from_svcpu()
287 vcpu->arch.regs.ctr = svcpu->ctr; in kvmppc_copy_from_svcpu()
288 vcpu->arch.regs.link = svcpu->lr; in kvmppc_copy_from_svcpu()
289 vcpu->arch.regs.nip = svcpu->pc; in kvmppc_copy_from_svcpu()
290 vcpu->arch.shadow_srr1 = svcpu->shadow_srr1; in kvmppc_copy_from_svcpu()
291 vcpu->arch.fault_dar = svcpu->fault_dar; in kvmppc_copy_from_svcpu()
292 vcpu->arch.fault_dsisr = svcpu->fault_dsisr; in kvmppc_copy_from_svcpu()
293 vcpu->arch.last_inst = svcpu->last_inst; in kvmppc_copy_from_svcpu()
295 vcpu->arch.shadow_fscr = svcpu->shadow_fscr; in kvmppc_copy_from_svcpu()
329 svcpu->in_use = false; in kvmppc_copy_from_svcpu()
332 svcpu_put(svcpu); in kvmppc_copy_from_svcpu()
1183 struct kvmppc_book3s_shadow_vcpu *svcpu; in kvmppc_handle_exit_pr() local
1186 svcpu = svcpu_get(vcpu); in kvmppc_handle_exit_pr()
1187 sr = svcpu->sr[kvmppc_get_pc(vcpu) >> SID_SHIFT]; in kvmppc_handle_exit_pr()
1188 svcpu_put(svcpu); in kvmppc_handle_exit_pr()
1229 struct kvmppc_book3s_shadow_vcpu *svcpu; in kvmppc_handle_exit_pr() local
1232 svcpu = svcpu_get(vcpu); in kvmppc_handle_exit_pr()
1233 sr = svcpu->sr[dar >> SID_SHIFT]; in kvmppc_handle_exit_pr()
1234 svcpu_put(svcpu); in kvmppc_handle_exit_pr()