Lines Matching refs:vsmt
124 assert(spapr->vsmt); in spapr_vcpu_id()
126 (cpu_index / smp_threads) * spapr->vsmt + cpu_index % smp_threads; in spapr_vcpu_id()
131 assert(spapr->vsmt); in spapr_is_thread0_in_vcore()
132 return spapr_get_vcpu_id(cpu) % spapr->vsmt == 0; in spapr_is_thread0_in_vcore()
194 assert(spapr->vsmt); in spapr_max_server_number()
195 return DIV_ROUND_UP(ms->smp.max_cpus * spapr->vsmt, ms->smp.threads); in spapr_max_server_number()
2637 bool vsmt_user = !!spapr->vsmt; in spapr_set_vsmt_mode()
2664 if (spapr->vsmt < smp_threads) { in spapr_set_vsmt_mode()
2667 spapr->vsmt, smp_threads); in spapr_set_vsmt_mode()
2679 spapr->vsmt = MAX(8, smp_threads); in spapr_set_vsmt_mode()
2681 spapr->vsmt = smp_threads; in spapr_set_vsmt_mode()
2685 if (kvm_enabled() && (spapr->vsmt != kvm_smt)) { in spapr_set_vsmt_mode()
2686 ret = kvmppc_set_smt_threads(spapr->vsmt); in spapr_set_vsmt_mode()
2691 spapr->vsmt, ret); in spapr_set_vsmt_mode()
2696 if ((kvm_smt >= smp_threads) && ((spapr->vsmt % kvm_smt) == 0)) { in spapr_set_vsmt_mode()
2704 smp_threads, kvm_smt, spapr->vsmt); in spapr_set_vsmt_mode()
3499 &spapr->vsmt, OBJ_PROP_FLAG_READWRITE); in spapr_instance_init()
4590 vcpu_id * ms->smp.threads / spapr->vsmt); in spapr_set_vcpu_id()