Lines Matching refs:sregs

362 				      struct kvm_sregs *sregs)  in kvmppc_core_get_sregs_e500()  argument
366 sregs->u.e.features |= KVM_SREGS_E_ARCH206_MMU | KVM_SREGS_E_SPE | in kvmppc_core_get_sregs_e500()
368 sregs->u.e.impl_id = KVM_SREGS_E_IMPL_FSL; in kvmppc_core_get_sregs_e500()
370 sregs->u.e.impl.fsl.features = 0; in kvmppc_core_get_sregs_e500()
371 sregs->u.e.impl.fsl.svr = vcpu_e500->svr; in kvmppc_core_get_sregs_e500()
372 sregs->u.e.impl.fsl.hid0 = vcpu_e500->hid0; in kvmppc_core_get_sregs_e500()
373 sregs->u.e.impl.fsl.mcar = vcpu_e500->mcar; in kvmppc_core_get_sregs_e500()
375 sregs->u.e.ivor_high[0] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_UNAVAIL]; in kvmppc_core_get_sregs_e500()
376 sregs->u.e.ivor_high[1] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_DATA]; in kvmppc_core_get_sregs_e500()
377 sregs->u.e.ivor_high[2] = vcpu->arch.ivor[BOOKE_IRQPRIO_SPE_FP_ROUND]; in kvmppc_core_get_sregs_e500()
378 sregs->u.e.ivor_high[3] = in kvmppc_core_get_sregs_e500()
381 kvmppc_get_sregs_ivor(vcpu, sregs); in kvmppc_core_get_sregs_e500()
382 kvmppc_get_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_get_sregs_e500()
387 struct kvm_sregs *sregs) in kvmppc_core_set_sregs_e500() argument
392 if (sregs->u.e.impl_id == KVM_SREGS_E_IMPL_FSL) { in kvmppc_core_set_sregs_e500()
393 vcpu_e500->svr = sregs->u.e.impl.fsl.svr; in kvmppc_core_set_sregs_e500()
394 vcpu_e500->hid0 = sregs->u.e.impl.fsl.hid0; in kvmppc_core_set_sregs_e500()
395 vcpu_e500->mcar = sregs->u.e.impl.fsl.mcar; in kvmppc_core_set_sregs_e500()
398 ret = kvmppc_set_sregs_e500_tlb(vcpu, sregs); in kvmppc_core_set_sregs_e500()
402 if (!(sregs->u.e.features & KVM_SREGS_E_IVOR)) in kvmppc_core_set_sregs_e500()
405 if (sregs->u.e.features & KVM_SREGS_E_SPE) { in kvmppc_core_set_sregs_e500()
407 sregs->u.e.ivor_high[0]; in kvmppc_core_set_sregs_e500()
409 sregs->u.e.ivor_high[1]; in kvmppc_core_set_sregs_e500()
411 sregs->u.e.ivor_high[2]; in kvmppc_core_set_sregs_e500()
414 if (sregs->u.e.features & KVM_SREGS_E_PM) { in kvmppc_core_set_sregs_e500()
416 sregs->u.e.ivor_high[3]; in kvmppc_core_set_sregs_e500()
419 return kvmppc_set_sregs_ivor(vcpu, sregs); in kvmppc_core_set_sregs_e500()