Lines Matching refs:tvcpu
535 struct kvm_vcpu *tvcpu; in do_h_register_vpa() local
540 tvcpu = kvmppc_find_vcpu(kvm, vcpuid); in do_h_register_vpa()
541 if (!tvcpu) in do_h_register_vpa()
571 spin_lock(&tvcpu->arch.vpa_update_lock); in do_h_register_vpa()
584 vpap = &tvcpu->arch.vpa; in do_h_register_vpa()
595 if (!vpa_is_registered(&tvcpu->arch.vpa)) in do_h_register_vpa()
598 vpap = &tvcpu->arch.dtl; in do_h_register_vpa()
605 if (!vpa_is_registered(&tvcpu->arch.vpa)) in do_h_register_vpa()
608 vpap = &tvcpu->arch.slb_shadow; in do_h_register_vpa()
615 if (vpa_is_registered(&tvcpu->arch.dtl) || in do_h_register_vpa()
616 vpa_is_registered(&tvcpu->arch.slb_shadow)) in do_h_register_vpa()
619 vpap = &tvcpu->arch.vpa; in do_h_register_vpa()
624 vpap = &tvcpu->arch.dtl; in do_h_register_vpa()
629 vpap = &tvcpu->arch.slb_shadow; in do_h_register_vpa()
640 spin_unlock(&tvcpu->arch.vpa_update_lock); in do_h_register_vpa()
1097 struct kvm_vcpu *tvcpu; in kvmppc_pseries_do_hcall() local
1155 tvcpu = kvmppc_find_vcpu(kvm, target); in kvmppc_pseries_do_hcall()
1156 if (!tvcpu) { in kvmppc_pseries_do_hcall()
1160 tvcpu->arch.prodded = 1; in kvmppc_pseries_do_hcall()
1162 if (tvcpu->arch.ceded) in kvmppc_pseries_do_hcall()
1163 kvmppc_fast_vcpu_kick_hv(tvcpu); in kvmppc_pseries_do_hcall()
1169 tvcpu = kvmppc_find_vcpu(kvm, target); in kvmppc_pseries_do_hcall()
1170 if (!tvcpu) { in kvmppc_pseries_do_hcall()
1175 if (kvmppc_get_yield_count(tvcpu) != yield_count) in kvmppc_pseries_do_hcall()
1177 kvm_arch_vcpu_yield_to(tvcpu); in kvmppc_pseries_do_hcall()
1482 struct kvm_vcpu *tvcpu; in kvmppc_emulate_doorbell_instr() local
1500 tvcpu = kvmppc_find_vcpu(kvm, vcpu->vcpu_id - thr + arg); in kvmppc_emulate_doorbell_instr()
1501 if (!tvcpu) in kvmppc_emulate_doorbell_instr()
1503 if (!tvcpu->arch.doorbell_request) { in kvmppc_emulate_doorbell_instr()
1504 tvcpu->arch.doorbell_request = 1; in kvmppc_emulate_doorbell_instr()
1505 kvmppc_fast_vcpu_kick_hv(tvcpu); in kvmppc_emulate_doorbell_instr()