David Gibson 22419c2a90 pseries: Fix incorrect calculation of threads per socket for chip-id
The device tree presented to pseries machine type guests includes an
ibm,chip-id property which gives essentially the socket number of each
vcpu core (individual vcpu threads don't get a node in the device
tree).

To calculate this, it uses a vcpus_per_socket variable computed as
(smp_cpus / #sockets).  This is correct for the usual case where
smp_cpus == smp_threads * smp_cores * #sockets.

However, you can start QEMU with the number of cores and threads
mismatching the total number of vcpus (whether that _should_ be
permitted is a topic for another day).  It's a bit hard to say what
the "real" number of vcpus per socket here is, but for most purposes
(smp_threads * smp_cores) will more meaningfully match how QEMU
behaves with respect to socket boundaries.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
2015-09-23 10:51:10 +10:00
2015-09-14 18:51:09 +01:00
2015-09-14 16:13:16 +01:00
2015-09-21 09:56:49 +02:00
2015-09-23 10:51:09 +10:00
2015-09-21 09:56:49 +02:00
2015-09-21 09:56:49 +02:00
2015-09-14 16:13:16 +01:00
2015-09-19 11:53:15 +02:00
2015-09-18 14:38:08 +02:00
2015-09-15 17:24:28 +01:00
2015-09-14 16:13:16 +01:00
2015-09-22 11:32:37 +02:00
2015-09-14 16:51:36 +02:00
2015-09-16 17:33:33 +02:00
2015-09-15 15:42:58 +01:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%