Lines Matching refs:pcpu
740 unsigned int pcpu, u64 now, in __kvmppc_create_dtl_entry() argument
752 dt->processor_id = cpu_to_be16(pcpu + vcpu->arch.ptid); in __kvmppc_create_dtl_entry()
797 __kvmppc_create_dtl_entry(vcpu, vpa, vc->pcpu, now + vc->tb_offset, stolen); in kvmppc_update_vpa_dispatch()
820 __kvmppc_create_dtl_entry(vcpu, vpa, vc->pcpu, now, stolen_delta); in kvmppc_update_vpa_dispatch_p9()
1446 int thr, cpu, pcpu, nthreads; in kvmppc_read_dpdes() local
1462 pcpu = READ_ONCE(v->cpu); in kvmppc_read_dpdes()
1463 if (pcpu >= 0) in kvmppc_read_dpdes()
1464 smp_call_function_single(pcpu, do_nothing, NULL, 1); in kvmppc_read_dpdes()
3226 static void kvmppc_prepare_radix_vcpu(struct kvm_vcpu *vcpu, int pcpu) in kvmppc_prepare_radix_vcpu() argument
3251 if (prev_cpu != pcpu) { in kvmppc_prepare_radix_vcpu()
3254 cpu_first_tlb_thread_sibling(pcpu)) in kvmppc_prepare_radix_vcpu()
3261 nested->prev_cpu[vcpu->arch.nested_vcpu_id] = pcpu; in kvmppc_prepare_radix_vcpu()
3263 vcpu->arch.prev_cpu = pcpu; in kvmppc_prepare_radix_vcpu()
3272 cpu = vc->pcpu; in kvmppc_start_thread()
3279 vcpu->cpu = vc->pcpu; in kvmppc_start_thread()
3284 tpaca->kvm_hstate.ptid = cpu - vc->pcpu; in kvmppc_start_thread()
3384 vc->pcpu = smp_processor_id(); in kvmppc_vcore_preempt()
3403 lp = &per_cpu(preempted_vcores, vc->pcpu); in kvmppc_vcore_end_preempt()
3722 int pcpu, thr; in kvmppc_run_core() local
3774 pcpu = smp_processor_id(); in kvmppc_run_core()
3802 kvmppc_release_hwthread(pcpu + i); in kvmppc_run_core()
3806 kvmppc_clear_host_core(pcpu); in kvmppc_run_core()
3844 struct paca_struct *paca = paca_ptrs[pcpu + thr]; in kvmppc_run_core()
3892 pvc->pcpu = pcpu + thr; in kvmppc_run_core()
3932 kvmppc_ipi_thread(pcpu + thr); in kvmppc_run_core()
3986 kvmppc_set_host_core(pcpu); in kvmppc_run_core()
4006 kvmppc_release_hwthread(pcpu + i); in kvmppc_run_core()
4008 kvmppc_ipi_thread(pcpu + i); in kvmppc_run_core()
4599 int trap, r, pcpu; in kvmhv_run_single_vcpu() local
4635 pcpu = smp_processor_id(); in kvmhv_run_single_vcpu()
4637 kvmppc_prepare_radix_vcpu(vcpu, pcpu); in kvmhv_run_single_vcpu()
4649 vcpu->cpu = pcpu; in kvmhv_run_single_vcpu()
4650 vcpu->arch.thread_cpu = pcpu; in kvmhv_run_single_vcpu()
4651 vc->pcpu = pcpu; in kvmhv_run_single_vcpu()