Re: [Qemu-devel] [PATCH v2 2/3] cpus: Convert cpu_index into a bitmap

2015-05-19 Thread Eduardo Habkost
On Tue, May 19, 2015 at 11:49:36AM +0530, Bharata B Rao wrote: > On Mon, May 18, 2015 at 03:36:54PM -0300, Eduardo Habkost wrote: > > On Tue, May 12, 2015 at 11:06:25AM +0530, Bharata B Rao wrote: [...] > > > void cpu_exec_init(CPUArchState *env, Error **errp) [...] > > > diff --git a/include/qom/

Re: [Qemu-devel] [PATCH v2 2/3] cpus: Convert cpu_index into a bitmap

2015-05-18 Thread Bharata B Rao
On Mon, May 18, 2015 at 03:36:54PM -0300, Eduardo Habkost wrote: > On Tue, May 12, 2015 at 11:06:25AM +0530, Bharata B Rao wrote: > > Currently CPUState.cpu_index is monotonically increasing and a newly > > created CPU always gets the next higher index. The next available > > index is calculated by

Re: [Qemu-devel] [PATCH v2 2/3] cpus: Convert cpu_index into a bitmap

2015-05-18 Thread Eduardo Habkost
On Tue, May 12, 2015 at 11:06:25AM +0530, Bharata B Rao wrote: > Currently CPUState.cpu_index is monotonically increasing and a newly > created CPU always gets the next higher index. The next available > index is calculated by counting the existing number of CPUs. This is > fine as long as we only

[Qemu-devel] [PATCH v2 2/3] cpus: Convert cpu_index into a bitmap

2015-05-11 Thread Bharata B Rao
Currently CPUState.cpu_index is monotonically increasing and a newly created CPU always gets the next higher index. The next available index is calculated by counting the existing number of CPUs. This is fine as long as we only add CPUs, but there are architectures which are starting to support CPU