Lines Matching refs:arch

102 	vcpu->arch.pid = pid;  in kvmppc_set_pid()
119 mtspr(SPRN_EPCR, vcpu->arch.shadow_epcr); in kvmppc_core_vcpu_load_e500mc()
121 mtspr(SPRN_MSRP, vcpu->arch.shadow_msrp); in kvmppc_core_vcpu_load_e500mc()
122 vcpu->arch.eplc = EPC_EGS | (get_lpid(vcpu) << EPC_ELPID_SHIFT); in kvmppc_core_vcpu_load_e500mc()
123 vcpu->arch.epsc = vcpu->arch.eplc; in kvmppc_core_vcpu_load_e500mc()
124 mtspr(SPRN_EPLC, vcpu->arch.eplc); in kvmppc_core_vcpu_load_e500mc()
125 mtspr(SPRN_EPSC, vcpu->arch.epsc); in kvmppc_core_vcpu_load_e500mc()
127 mtspr(SPRN_GIVPR, vcpu->arch.ivpr); in kvmppc_core_vcpu_load_e500mc()
128 mtspr(SPRN_GIVOR2, vcpu->arch.ivor[BOOKE_IRQPRIO_DATA_STORAGE]); in kvmppc_core_vcpu_load_e500mc()
129 mtspr(SPRN_GIVOR8, vcpu->arch.ivor[BOOKE_IRQPRIO_SYSCALL]); in kvmppc_core_vcpu_load_e500mc()
130 mtspr(SPRN_GSPRG0, (unsigned long)vcpu->arch.shared->sprg0); in kvmppc_core_vcpu_load_e500mc()
131 mtspr(SPRN_GSPRG1, (unsigned long)vcpu->arch.shared->sprg1); in kvmppc_core_vcpu_load_e500mc()
132 mtspr(SPRN_GSPRG2, (unsigned long)vcpu->arch.shared->sprg2); in kvmppc_core_vcpu_load_e500mc()
133 mtspr(SPRN_GSPRG3, (unsigned long)vcpu->arch.shared->sprg3); in kvmppc_core_vcpu_load_e500mc()
135 mtspr(SPRN_GSRR0, vcpu->arch.shared->srr0); in kvmppc_core_vcpu_load_e500mc()
136 mtspr(SPRN_GSRR1, vcpu->arch.shared->srr1); in kvmppc_core_vcpu_load_e500mc()
138 mtspr(SPRN_GEPR, vcpu->arch.epr); in kvmppc_core_vcpu_load_e500mc()
139 mtspr(SPRN_GDEAR, vcpu->arch.shared->dar); in kvmppc_core_vcpu_load_e500mc()
140 mtspr(SPRN_GESR, vcpu->arch.shared->esr); in kvmppc_core_vcpu_load_e500mc()
142 if (vcpu->arch.oldpir != mfspr(SPRN_PIR) || in kvmppc_core_vcpu_load_e500mc()
151 vcpu->arch.eplc = mfspr(SPRN_EPLC); in kvmppc_core_vcpu_put_e500mc()
152 vcpu->arch.epsc = mfspr(SPRN_EPSC); in kvmppc_core_vcpu_put_e500mc()
154 vcpu->arch.shared->sprg0 = mfspr(SPRN_GSPRG0); in kvmppc_core_vcpu_put_e500mc()
155 vcpu->arch.shared->sprg1 = mfspr(SPRN_GSPRG1); in kvmppc_core_vcpu_put_e500mc()
156 vcpu->arch.shared->sprg2 = mfspr(SPRN_GSPRG2); in kvmppc_core_vcpu_put_e500mc()
157 vcpu->arch.shared->sprg3 = mfspr(SPRN_GSPRG3); in kvmppc_core_vcpu_put_e500mc()
159 vcpu->arch.shared->srr0 = mfspr(SPRN_GSRR0); in kvmppc_core_vcpu_put_e500mc()
160 vcpu->arch.shared->srr1 = mfspr(SPRN_GSRR1); in kvmppc_core_vcpu_put_e500mc()
162 vcpu->arch.epr = mfspr(SPRN_GEPR); in kvmppc_core_vcpu_put_e500mc()
163 vcpu->arch.shared->dar = mfspr(SPRN_GDEAR); in kvmppc_core_vcpu_put_e500mc()
164 vcpu->arch.shared->esr = mfspr(SPRN_GESR); in kvmppc_core_vcpu_put_e500mc()
166 vcpu->arch.oldpir = mfspr(SPRN_PIR); in kvmppc_core_vcpu_put_e500mc()
199 vcpu->arch.shadow_epcr = SPRN_EPCR_DSIGS | SPRN_EPCR_DGTMI | \ in kvmppc_core_vcpu_setup()
202 vcpu->arch.shadow_epcr |= SPRN_EPCR_ICM; in kvmppc_core_vcpu_setup()
204 vcpu->arch.shadow_msrp = MSRP_UCLEP | MSRP_PMMP; in kvmppc_core_vcpu_setup()
206 vcpu->arch.pvr = mfspr(SPRN_PVR); in kvmppc_core_vcpu_setup()
209 vcpu->arch.cpu_type = KVM_CPU_E500MC; in kvmppc_core_vcpu_setup()
231 vcpu->arch.ivor[BOOKE_IRQPRIO_PERFORMANCE_MONITOR]; in kvmppc_core_get_sregs_e500mc()
232 sregs->u.e.ivor_high[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL]; in kvmppc_core_get_sregs_e500mc()
233 sregs->u.e.ivor_high[5] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL_CRIT]; in kvmppc_core_get_sregs_e500mc()
258 vcpu->arch.ivor[BOOKE_IRQPRIO_PERFORMANCE_MONITOR] = in kvmppc_core_set_sregs_e500mc()
263 vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL] = in kvmppc_core_set_sregs_e500mc()
265 vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL_CRIT] = in kvmppc_core_set_sregs_e500mc()
279 *val = get_reg_val(id, vcpu->arch.sprg9); in kvmppc_get_one_reg_e500mc()
295 vcpu->arch.sprg9 = set_reg_val(id, *val); in kvmppc_set_one_reg_e500mc()
313 vcpu->arch.oldpir = 0xffffffff; in kvmppc_core_vcpu_create_e500mc()
319 vcpu->arch.shared = (void *)__get_free_page(GFP_KERNEL | __GFP_ZERO); in kvmppc_core_vcpu_create_e500mc()
320 if (!vcpu->arch.shared) { in kvmppc_core_vcpu_create_e500mc()
336 free_page((unsigned long)vcpu->arch.shared); in kvmppc_core_vcpu_free_e500mc()
356 kvm->arch.lpid = lpid; in kvmppc_core_init_vm_e500mc()
362 int lpid = kvm->arch.lpid; in kvmppc_core_destroy_vm_e500mc()