svcpu              17 arch/powerpc/include/asm/kvm_book3s_32.h static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu)
svcpu             130 arch/powerpc/include/asm/kvm_book3s_64.h static inline void svcpu_put(struct kvmppc_book3s_shadow_vcpu *svcpu)
svcpu             308 arch/powerpc/kvm/book3s_32_mmu_host.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             313 arch/powerpc/kvm/book3s_32_mmu_host.c 		svcpu->sr[esid] = SR_INVALID;
svcpu             324 arch/powerpc/kvm/book3s_32_mmu_host.c 	svcpu->sr[esid] = sr;
svcpu             329 arch/powerpc/kvm/book3s_32_mmu_host.c 	svcpu_put(svcpu);
svcpu             336 arch/powerpc/kvm/book3s_32_mmu_host.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             338 arch/powerpc/kvm/book3s_32_mmu_host.c 	dprintk_sr("MMU: flushing all segments (%d)\n", ARRAY_SIZE(svcpu->sr));
svcpu             339 arch/powerpc/kvm/book3s_32_mmu_host.c 	for (i = 0; i < ARRAY_SIZE(svcpu->sr); i++)
svcpu             340 arch/powerpc/kvm/book3s_32_mmu_host.c 		svcpu->sr[i] = SR_INVALID;
svcpu             342 arch/powerpc/kvm/book3s_32_mmu_host.c 	svcpu_put(svcpu);
svcpu             271 arch/powerpc/kvm/book3s_64_mmu_host.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             278 arch/powerpc/kvm/book3s_64_mmu_host.c 	for (i = 0; i < svcpu->slb_max; i++) {
svcpu             279 arch/powerpc/kvm/book3s_64_mmu_host.c 		if (!(svcpu->slb[i].esid & SLB_ESID_V))
svcpu             281 arch/powerpc/kvm/book3s_64_mmu_host.c 		else if ((svcpu->slb[i].esid & ESID_MASK) == esid) {
svcpu             299 arch/powerpc/kvm/book3s_64_mmu_host.c 	if ((svcpu->slb_max) == max_slb_size)
svcpu             302 arch/powerpc/kvm/book3s_64_mmu_host.c 	r = svcpu->slb_max;
svcpu             303 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu->slb_max++;
svcpu             306 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu_put(svcpu);
svcpu             312 arch/powerpc/kvm/book3s_64_mmu_host.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             325 arch/powerpc/kvm/book3s_64_mmu_host.c 		svcpu->slb[slb_index].esid = 0;
svcpu             346 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu->slb[slb_index].esid = slb_esid;
svcpu             347 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu->slb[slb_index].vsid = slb_vsid;
svcpu             352 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu_put(svcpu);
svcpu             358 arch/powerpc/kvm/book3s_64_mmu_host.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             362 arch/powerpc/kvm/book3s_64_mmu_host.c 	for (i = 0; i < svcpu->slb_max; i++) {
svcpu             363 arch/powerpc/kvm/book3s_64_mmu_host.c 		if ((svcpu->slb[i].esid & SLB_ESID_V) &&
svcpu             364 arch/powerpc/kvm/book3s_64_mmu_host.c 		    (svcpu->slb[i].esid & seg_mask) == ea) {
svcpu             366 arch/powerpc/kvm/book3s_64_mmu_host.c 			svcpu->slb[i].esid = 0;
svcpu             370 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu_put(svcpu);
svcpu             375 arch/powerpc/kvm/book3s_64_mmu_host.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             376 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu->slb_max = 0;
svcpu             377 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu->slb[0].esid = 0;
svcpu             378 arch/powerpc/kvm/book3s_64_mmu_host.c 	svcpu_put(svcpu);
svcpu              98 arch/powerpc/kvm/book3s_pr.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu              99 arch/powerpc/kvm/book3s_pr.c 	memcpy(svcpu->slb, to_book3s(vcpu)->slb_shadow, sizeof(svcpu->slb));
svcpu             100 arch/powerpc/kvm/book3s_pr.c 	svcpu->slb_max = to_book3s(vcpu)->slb_shadow_max;
svcpu             101 arch/powerpc/kvm/book3s_pr.c 	svcpu->in_use = 0;
svcpu             102 arch/powerpc/kvm/book3s_pr.c 	svcpu_put(svcpu);
svcpu             124 arch/powerpc/kvm/book3s_pr.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             125 arch/powerpc/kvm/book3s_pr.c 	if (svcpu->in_use) {
svcpu             128 arch/powerpc/kvm/book3s_pr.c 	memcpy(to_book3s(vcpu)->slb_shadow, svcpu->slb, sizeof(svcpu->slb));
svcpu             129 arch/powerpc/kvm/book3s_pr.c 	to_book3s(vcpu)->slb_shadow_max = svcpu->slb_max;
svcpu             130 arch/powerpc/kvm/book3s_pr.c 	svcpu_put(svcpu);
svcpu             151 arch/powerpc/kvm/book3s_pr.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             153 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[0] = vcpu->arch.regs.gpr[0];
svcpu             154 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[1] = vcpu->arch.regs.gpr[1];
svcpu             155 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[2] = vcpu->arch.regs.gpr[2];
svcpu             156 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[3] = vcpu->arch.regs.gpr[3];
svcpu             157 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[4] = vcpu->arch.regs.gpr[4];
svcpu             158 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[5] = vcpu->arch.regs.gpr[5];
svcpu             159 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[6] = vcpu->arch.regs.gpr[6];
svcpu             160 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[7] = vcpu->arch.regs.gpr[7];
svcpu             161 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[8] = vcpu->arch.regs.gpr[8];
svcpu             162 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[9] = vcpu->arch.regs.gpr[9];
svcpu             163 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[10] = vcpu->arch.regs.gpr[10];
svcpu             164 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[11] = vcpu->arch.regs.gpr[11];
svcpu             165 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[12] = vcpu->arch.regs.gpr[12];
svcpu             166 arch/powerpc/kvm/book3s_pr.c 	svcpu->gpr[13] = vcpu->arch.regs.gpr[13];
svcpu             167 arch/powerpc/kvm/book3s_pr.c 	svcpu->cr  = vcpu->arch.regs.ccr;
svcpu             168 arch/powerpc/kvm/book3s_pr.c 	svcpu->xer = vcpu->arch.regs.xer;
svcpu             169 arch/powerpc/kvm/book3s_pr.c 	svcpu->ctr = vcpu->arch.regs.ctr;
svcpu             170 arch/powerpc/kvm/book3s_pr.c 	svcpu->lr  = vcpu->arch.regs.link;
svcpu             171 arch/powerpc/kvm/book3s_pr.c 	svcpu->pc  = vcpu->arch.regs.nip;
svcpu             173 arch/powerpc/kvm/book3s_pr.c 	svcpu->shadow_fscr = vcpu->arch.shadow_fscr;
svcpu             183 arch/powerpc/kvm/book3s_pr.c 	svcpu->in_use = true;
svcpu             185 arch/powerpc/kvm/book3s_pr.c 	svcpu_put(svcpu);
svcpu             223 arch/powerpc/kvm/book3s_pr.c 	struct kvmppc_book3s_shadow_vcpu *svcpu = svcpu_get(vcpu);
svcpu             232 arch/powerpc/kvm/book3s_pr.c 	if (!svcpu->in_use)
svcpu             235 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[0] = svcpu->gpr[0];
svcpu             236 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[1] = svcpu->gpr[1];
svcpu             237 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[2] = svcpu->gpr[2];
svcpu             238 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[3] = svcpu->gpr[3];
svcpu             239 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[4] = svcpu->gpr[4];
svcpu             240 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[5] = svcpu->gpr[5];
svcpu             241 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[6] = svcpu->gpr[6];
svcpu             242 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[7] = svcpu->gpr[7];
svcpu             243 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[8] = svcpu->gpr[8];
svcpu             244 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[9] = svcpu->gpr[9];
svcpu             245 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[10] = svcpu->gpr[10];
svcpu             246 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[11] = svcpu->gpr[11];
svcpu             247 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[12] = svcpu->gpr[12];
svcpu             248 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.gpr[13] = svcpu->gpr[13];
svcpu             249 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.ccr  = svcpu->cr;
svcpu             250 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.xer = svcpu->xer;
svcpu             251 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.ctr = svcpu->ctr;
svcpu             252 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.link  = svcpu->lr;
svcpu             253 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.regs.nip  = svcpu->pc;
svcpu             254 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.shadow_srr1 = svcpu->shadow_srr1;
svcpu             255 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.fault_dar   = svcpu->fault_dar;
svcpu             256 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.fault_dsisr = svcpu->fault_dsisr;
svcpu             257 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.last_inst   = svcpu->last_inst;
svcpu             259 arch/powerpc/kvm/book3s_pr.c 	vcpu->arch.shadow_fscr = svcpu->shadow_fscr;
svcpu             293 arch/powerpc/kvm/book3s_pr.c 	svcpu->in_use = false;
svcpu             296 arch/powerpc/kvm/book3s_pr.c 	svcpu_put(svcpu);
svcpu            1148 arch/powerpc/kvm/book3s_pr.c 			struct kvmppc_book3s_shadow_vcpu *svcpu;
svcpu            1151 arch/powerpc/kvm/book3s_pr.c 			svcpu = svcpu_get(vcpu);
svcpu            1152 arch/powerpc/kvm/book3s_pr.c 			sr = svcpu->sr[kvmppc_get_pc(vcpu) >> SID_SHIFT];
svcpu            1153 arch/powerpc/kvm/book3s_pr.c 			svcpu_put(svcpu);
svcpu            1194 arch/powerpc/kvm/book3s_pr.c 			struct kvmppc_book3s_shadow_vcpu *svcpu;
svcpu            1197 arch/powerpc/kvm/book3s_pr.c 			svcpu = svcpu_get(vcpu);
svcpu            1198 arch/powerpc/kvm/book3s_pr.c 			sr = svcpu->sr[dar >> SID_SHIFT];
svcpu            1199 arch/powerpc/kvm/book3s_pr.c 			svcpu_put(svcpu);