• Home
  • Raw
  • Download

Lines Matching full:sregs

215 					struct kvm_sregs *sregs)  in kvmppc_core_get_sregs_e500mc()  argument
219 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | in kvmppc_core_get_sregs_e500mc()
221 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500mc()
223 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500mc()
224 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500mc()
225 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500mc()
226 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500mc()
228 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500mc()
230 sregs->u.e.ivor_high[3] = 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()
235 return kvmppc_get_sregs_ivor(vcpu, sregs); in kvmppc_core_get_sregs_e500mc()
239 struct kvm_sregs *sregs) in kvmppc_core_set_sregs_e500mc() argument
244 if (sregs->u.e.impl_id == KVM_SREGS_E_IMPL_FSL) { in kvmppc_core_set_sregs_e500mc()
245 vcpu_e500->svr = sregs->u.e.impl.fsl.svr; in kvmppc_core_set_sregs_e500mc()
246 vcpu_e500->hid0 = sregs->u.e.impl.fsl.hid0; in kvmppc_core_set_sregs_e500mc()
247 vcpu_e500->mcar = sregs->u.e.impl.fsl.mcar; in kvmppc_core_set_sregs_e500mc()
250 ret = kvmppc_set_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_set_sregs_e500mc()
254 if (!(sregs->u.e.features & KVM_SREGS_E_IVOR)) in kvmppc_core_set_sregs_e500mc()
257 if (sregs->u.e.features & KVM_SREGS_E_PM) { in kvmppc_core_set_sregs_e500mc()
259 sregs->u.e.ivor_high[3]; in kvmppc_core_set_sregs_e500mc()
262 if (sregs->u.e.features & KVM_SREGS_E_PC) { in kvmppc_core_set_sregs_e500mc()
264 sregs->u.e.ivor_high[4]; in kvmppc_core_set_sregs_e500mc()
266 sregs->u.e.ivor_high[5]; in kvmppc_core_set_sregs_e500mc()
269 return kvmppc_set_sregs_ivor(vcpu, sregs); in kvmppc_core_set_sregs_e500mc()