• Home
  • Raw
  • Download

Lines Matching refs:sregs

219 					struct kvm_sregs *sregs)  in kvmppc_core_get_sregs_e500mc()  argument
223 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_PM | in kvmppc_core_get_sregs_e500mc()
225 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500mc()
227 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500mc()
228 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500mc()
229 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500mc()
230 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500mc()
232 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500mc()
234 sregs->u.e.ivor_high[3] = in kvmppc_core_get_sregs_e500mc()
236 sregs->u.e.ivor_high[4] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL]; in kvmppc_core_get_sregs_e500mc()
237 sregs->u.e.ivor_high[5] = vcpu->arch.ivor[BOOKE_IRQPRIO_DBELL_CRIT]; in kvmppc_core_get_sregs_e500mc()
239 return kvmppc_get_sregs_ivor(vcpu, sregs); in kvmppc_core_get_sregs_e500mc()
243 struct kvm_sregs *sregs) in kvmppc_core_set_sregs_e500mc() argument
248 if (sregs->u.e.impl_id == KVM_SREGS_E_IMPL_FSL) { in kvmppc_core_set_sregs_e500mc()
249 vcpu_e500->svr = sregs->u.e.impl.fsl.svr; in kvmppc_core_set_sregs_e500mc()
250 vcpu_e500->hid0 = sregs->u.e.impl.fsl.hid0; in kvmppc_core_set_sregs_e500mc()
251 vcpu_e500->mcar = sregs->u.e.impl.fsl.mcar; in kvmppc_core_set_sregs_e500mc()
254 ret = kvmppc_set_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_set_sregs_e500mc()
258 if (!(sregs->u.e.features & KVM_SREGS_E_IVOR)) in kvmppc_core_set_sregs_e500mc()
261 if (sregs->u.e.features & KVM_SREGS_E_PM) { in kvmppc_core_set_sregs_e500mc()
263 sregs->u.e.ivor_high[3]; in kvmppc_core_set_sregs_e500mc()
266 if (sregs->u.e.features & KVM_SREGS_E_PC) { in kvmppc_core_set_sregs_e500mc()
268 sregs->u.e.ivor_high[4]; in kvmppc_core_set_sregs_e500mc()
270 sregs->u.e.ivor_high[5]; in kvmppc_core_set_sregs_e500mc()
273 return kvmppc_set_sregs_ivor(vcpu, sregs); in kvmppc_core_set_sregs_e500mc()