Re: [Qemu-devel] [PATCH for-2.10 04/23] hw/arm/virt: explicitly allocate cpu_index for cpus

2017-04-25 Thread Andrew Jones
On Wed, Mar 22, 2017 at 02:32:29PM +0100, Igor Mammedov wrote: > Currently cpu_index is implicitly auto assigned during > cpu.realize() time cpu_exec_realizefn()->cpu_list_add(). > > It happens to match index in possible_cpus so take > control over it and make board initialize cpu_index > to

[Qemu-devel] [PATCH for-2.10 04/23] hw/arm/virt: explicitly allocate cpu_index for cpus

2017-03-22 Thread Igor Mammedov
Currently cpu_index is implicitly auto assigned during cpu.realize() time cpu_exec_realizefn()->cpu_list_add(). It happens to match index in possible_cpus so take control over it and make board initialize cpu_index to possible_cpus index explicitly. It will at least document that board is in