Re: [Qemu-devel] [PATCH 1/5] spapr: use spapr->vsmt to compute VCPU ids

2018-02-14 Thread David Gibson
On Wed, Feb 14, 2018 at 08:40:26PM +0100, Greg Kurz wrote: > Since the introduction of VSMT in 2.11, the spacing of VCPU ids > between cores is controllable through a machine property instead > of being only dictated by the SMT mode of the host: > > cpu->vcpu_id = (cc->core_id * spapr->vsmt /

[Qemu-devel] [PATCH 1/5] spapr: use spapr->vsmt to compute VCPU ids

2018-02-14 Thread Greg Kurz
Since the introduction of VSMT in 2.11, the spacing of VCPU ids between cores is controllable through a machine property instead of being only dictated by the SMT mode of the host: cpu->vcpu_id = (cc->core_id * spapr->vsmt / smp_threads) + i Until recently, the machine code would try to chang