Re: [Qemu-devel] [PATCH v3 2/4] qom/cpu: Add cluster_index to CPUState

2019-01-25 Thread Alistair
On 1/21/19 7:22 AM, Peter Maydell wrote: For TCG we want to distinguish which cluster a CPU is in, and we need to do it quickly. Cache the cluster index in the CPUState struct, by having the cluster object set cpu->cluster_index for each CPU child when it is realized. This means that board/SoC c

Re: [Qemu-devel] [PATCH v3 2/4] qom/cpu: Add cluster_index to CPUState

2019-01-21 Thread Edgar E. Iglesias
On Mon, Jan 21, 2019 at 03:22:16PM +, Peter Maydell wrote: > For TCG we want to distinguish which cluster a CPU is in, and > we need to do it quickly. Cache the cluster index in the CPUState > struct, by having the cluster object set cpu->cluster_index for > each CPU child when it is realized.

[Qemu-devel] [PATCH v3 2/4] qom/cpu: Add cluster_index to CPUState

2019-01-21 Thread Peter Maydell
For TCG we want to distinguish which cluster a CPU is in, and we need to do it quickly. Cache the cluster index in the CPUState struct, by having the cluster object set cpu->cluster_index for each CPU child when it is realized. This means that board/SoC code must add all CPUs to the cluster before