spapr: init CPUState->cpu_index with index relative to core-id
commitb63578bdb50243d05c48c3c94cc58ae446f2eb93
authorIgor Mammedov <imammedo@redhat.com>
Thu, 21 Jul 2016 15:54:37 +0000 (21 17:54 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 29 Jul 2016 02:02:31 +0000 (29 12:02 +1000)
tree6938d23077d52ffc415baf3416108dc8d05f7c1c
parent21a21b853a1bb606358af61e738abfb9aecbd720
spapr: init CPUState->cpu_index with index relative to core-id

It will enshure that cpu_index for a given cpu stays the same
regardless of the order cpus has been created/deleted and so
it would be possible to migrate QEMU instance with out of order
created CPU.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c