Lines Matching refs:vcore

320 	struct kvmppc_vcore *vc = vcpu->arch.vcore;  in kvmppc_core_vcpu_load_hv()
355 struct kvmppc_vcore *vc = vcpu->arch.vcore; in kvmppc_core_vcpu_put_hv()
415 struct kvmppc_vcore *vc = vcpu->arch.vcore; in kvmppc_set_arch_compat()
512 vcpu->arch.vcore->lpcr, vcpu->kvm->arch.sdr1, in kvmppc_dump_regs()
892 vc = vcpu->arch.vcore; in kvmppc_doorbell_pending()
1042 struct kvmppc_vcore *vcore = target->arch.vcore; in kvm_arch_vcpu_yield_to() local
1056 spin_lock(&vcore->lock); in kvm_arch_vcpu_yield_to()
1058 vcore->vcore_state != VCORE_INACTIVE && in kvm_arch_vcpu_yield_to()
1059 vcore->runner) in kvm_arch_vcpu_yield_to()
1060 target = vcore->runner; in kvm_arch_vcpu_yield_to()
1061 spin_unlock(&vcore->lock); in kvm_arch_vcpu_yield_to()
1567 vcpu->arch.vcore->dpdes = 0; in kvmppc_emulate_doorbell_instr()
2209 struct kvmppc_vcore *vc = vcpu->arch.vcore; in kvmppc_set_lpcr()
2239 if (vcpu->arch.vcore != vc) in kvmppc_set_lpcr()
2343 *val = get_reg_val(id, vcpu->arch.vcore->dpdes); in kvmppc_get_one_reg_hv()
2595 vcpu->arch.vcore->dpdes = set_reg_val(id, *val); in kvmppc_set_one_reg_hv()
2780 atomic_inc(&vcpu->arch.vcore->online_count); in kvmppc_set_one_reg_hv()
2782 atomic_dec(&vcpu->arch.vcore->online_count); in kvmppc_set_one_reg_hv()
2815 struct kvmppc_vcore *vcore; in kvmppc_vcore_create() local
2817 vcore = kzalloc(sizeof(struct kvmppc_vcore), GFP_KERNEL); in kvmppc_vcore_create()
2819 if (vcore == NULL) in kvmppc_vcore_create()
2822 spin_lock_init(&vcore->lock); in kvmppc_vcore_create()
2823 spin_lock_init(&vcore->stoltb_lock); in kvmppc_vcore_create()
2824 rcuwait_init(&vcore->wait); in kvmppc_vcore_create()
2825 vcore->preempt_tb = TB_NIL; in kvmppc_vcore_create()
2826 vcore->lpcr = kvm->arch.lpcr; in kvmppc_vcore_create()
2827 vcore->first_vcpuid = id; in kvmppc_vcore_create()
2828 vcore->kvm = kvm; in kvmppc_vcore_create()
2829 INIT_LIST_HEAD(&vcore->preempt_list); in kvmppc_vcore_create()
2831 return vcore; in kvmppc_vcore_create()
2989 struct kvmppc_vcore *vcore; in kvmppc_core_vcpu_create_hv() local
3069 vcore = NULL; in kvmppc_core_vcpu_create_hv()
3083 vcore = kvm->arch.vcores[core]; in kvmppc_core_vcpu_create_hv()
3084 if (vcore && cpu_has_feature(CPU_FTR_ARCH_300)) { in kvmppc_core_vcpu_create_hv()
3086 vcore = NULL; in kvmppc_core_vcpu_create_hv()
3087 } else if (!vcore) { in kvmppc_core_vcpu_create_hv()
3093 vcore = kvmppc_vcore_create(kvm, in kvmppc_core_vcpu_create_hv()
3096 kvm->arch.vcores[core] = vcore; in kvmppc_core_vcpu_create_hv()
3103 if (!vcore) in kvmppc_core_vcpu_create_hv()
3106 spin_lock(&vcore->lock); in kvmppc_core_vcpu_create_hv()
3107 ++vcore->num_threads; in kvmppc_core_vcpu_create_hv()
3108 spin_unlock(&vcore->lock); in kvmppc_core_vcpu_create_hv()
3109 vcpu->arch.vcore = vcore; in kvmppc_core_vcpu_create_hv()
3110 vcpu->arch.ptid = vcpu->vcpu_id - vcore->first_vcpuid; in kvmppc_core_vcpu_create_hv()
4703 vc = vcpu->arch.vcore; in kvmppc_run_vcpu()
4835 vc = vcpu->arch.vcore; in kvmhv_run_single_vcpu()
5075 atomic_inc(&vcpu->arch.vcore->online_count); in kvmppc_vcpu_run_hv()
5104 vcpu->arch.waitp = &vcpu->arch.vcore->wait; in kvmppc_vcpu_run_hv()
5112 vcpu->arch.vcore->lpcr); in kvmppc_vcpu_run_hv()