aboutsummaryrefslogtreecommitdiff
path: root/tpm.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2016-07-22 13:10:36 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2016-07-25 15:43:41 +1000
commit12bf2d33fe520f9cfd09f7bf9d46ae3202c3cb49 (patch)
tree11d5a8c78175d70a99ec9ca3a7ce54650179024d /tpm.c
parent2fff4bad40abe5781d21c5e134161a1bd13c43cd (diff)
downloadqemu-12bf2d33fe520f9cfd09f7bf9d46ae3202c3cb49.zip
qemu-12bf2d33fe520f9cfd09f7bf9d46ae3202c3cb49.tar.gz
qemu-12bf2d33fe520f9cfd09f7bf9d46ae3202c3cb49.tar.bz2
spapr: disintricate core-id from DT semantics
The goal of this patch is to have a stable core-id which does not depend on any DT related semantics, which involve non-obvious computations on modern PowerPC server cpus. With this patch, the DT core id is computed on-demand as: (core-id / smp_threads) * smt where smt is the number of threads per core in the host. This formula should be consolidated in a helper since it is needed in several places. Other uses for core-id includes: compute a stable cpu_index (which allows random order hotplug/unplug without breaking migration) and NUMA. Signed-off-by: Greg Kurz <groug@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'tpm.c')
0 files changed, 0 insertions, 0 deletions