Lines Matching refs:vpap
552 static int vpa_is_registered(struct kvmppc_vpa *vpap) in vpa_is_registered() argument
554 if (vpap->update_pending) in vpa_is_registered()
555 return vpap->next_gpa != 0; in vpa_is_registered()
556 return vpap->pinned_addr != NULL; in vpa_is_registered()
569 struct kvmppc_vpa *vpap; in do_h_register_vpa() local
601 vpap = NULL; in do_h_register_vpa()
615 vpap = &tvcpu->arch.vpa; in do_h_register_vpa()
629 vpap = &tvcpu->arch.dtl; in do_h_register_vpa()
639 vpap = &tvcpu->arch.slb_shadow; in do_h_register_vpa()
650 vpap = &tvcpu->arch.vpa; in do_h_register_vpa()
655 vpap = &tvcpu->arch.dtl; in do_h_register_vpa()
660 vpap = &tvcpu->arch.slb_shadow; in do_h_register_vpa()
665 if (vpap) { in do_h_register_vpa()
666 vpap->next_gpa = vpa; in do_h_register_vpa()
667 vpap->len = len; in do_h_register_vpa()
668 vpap->update_pending = 1; in do_h_register_vpa()
676 static void kvmppc_update_vpa(struct kvm_vcpu *vcpu, struct kvmppc_vpa *vpap, in kvmppc_update_vpa() argument
693 gpa = vpap->next_gpa; in kvmppc_update_vpa()
700 if (gpa == vpap->next_gpa) in kvmppc_update_vpa()
707 vpap->update_pending = 0; in kvmppc_update_vpa()
708 if (va && nb < vpap->len) { in kvmppc_update_vpa()
717 *old_vpap = *vpap; in kvmppc_update_vpa()
719 vpap->gpa = gpa; in kvmppc_update_vpa()
720 vpap->pinned_addr = va; in kvmppc_update_vpa()
721 vpap->dirty = false; in kvmppc_update_vpa()
723 vpap->pinned_end = va + vpap->len; in kvmppc_update_vpa()