Lines Matching refs:tvcpu
506 struct kvm_vcpu *tvcpu; in do_h_register_vpa() local
511 tvcpu = kvmppc_find_vcpu(kvm, vcpuid); in do_h_register_vpa()
512 if (!tvcpu) in do_h_register_vpa()
542 spin_lock(&tvcpu->arch.vpa_update_lock); in do_h_register_vpa()
555 vpap = &tvcpu->arch.vpa; in do_h_register_vpa()
566 if (!vpa_is_registered(&tvcpu->arch.vpa)) in do_h_register_vpa()
569 vpap = &tvcpu->arch.dtl; in do_h_register_vpa()
576 if (!vpa_is_registered(&tvcpu->arch.vpa)) in do_h_register_vpa()
579 vpap = &tvcpu->arch.slb_shadow; in do_h_register_vpa()
586 if (vpa_is_registered(&tvcpu->arch.dtl) || in do_h_register_vpa()
587 vpa_is_registered(&tvcpu->arch.slb_shadow)) in do_h_register_vpa()
590 vpap = &tvcpu->arch.vpa; in do_h_register_vpa()
595 vpap = &tvcpu->arch.dtl; in do_h_register_vpa()
600 vpap = &tvcpu->arch.slb_shadow; in do_h_register_vpa()
611 spin_unlock(&tvcpu->arch.vpa_update_lock); in do_h_register_vpa()
1036 struct kvm_vcpu *tvcpu; in kvmppc_pseries_do_hcall() local
1094 tvcpu = kvmppc_find_vcpu(kvm, target); in kvmppc_pseries_do_hcall()
1095 if (!tvcpu) { in kvmppc_pseries_do_hcall()
1099 tvcpu->arch.prodded = 1; in kvmppc_pseries_do_hcall()
1101 if (tvcpu->arch.ceded) in kvmppc_pseries_do_hcall()
1102 kvmppc_fast_vcpu_kick_hv(tvcpu); in kvmppc_pseries_do_hcall()
1108 tvcpu = kvmppc_find_vcpu(kvm, target); in kvmppc_pseries_do_hcall()
1109 if (!tvcpu) { in kvmppc_pseries_do_hcall()
1114 if (kvmppc_get_yield_count(tvcpu) != yield_count) in kvmppc_pseries_do_hcall()
1116 kvm_arch_vcpu_yield_to(tvcpu); in kvmppc_pseries_do_hcall()
1420 struct kvm_vcpu *tvcpu; in kvmppc_emulate_doorbell_instr() local
1436 tvcpu = kvmppc_find_vcpu(kvm, vcpu->vcpu_id - thr + arg); in kvmppc_emulate_doorbell_instr()
1437 if (!tvcpu) in kvmppc_emulate_doorbell_instr()
1439 if (!tvcpu->arch.doorbell_request) { in kvmppc_emulate_doorbell_instr()
1440 tvcpu->arch.doorbell_request = 1; in kvmppc_emulate_doorbell_instr()
1441 kvmppc_fast_vcpu_kick_hv(tvcpu); in kvmppc_emulate_doorbell_instr()