Daniel Henrique Barboza 0895a0e75d formatdomain.html.in: fix 'sockets' info in topology element
In the 'topology' element it is mentioned, regarding the sockets
value, "They refer to the total number of CPU sockets".

This is not accurate. What we're doing is calculating the number
of sockets per NUMA node, which can be checked in the current
implementation of virHostCPUGetInfoPopulateLinux(). Calculating
the total number of sockets would break the topology sanity
check nodes*sockets*cores*threads=online_cpus.

This documentation fix is important to avoid user confusion when
seeing the output of 'virsh capabilities' and expecting it to be
equal to the output of 'lscpu'. E.g in a Power 9 host this 'lscpu'
output:

Architecture:        ppc64le
Byte Order:          Little Endian
CPU(s):              160
On-line CPU(s) list: 0-159
Thread(s) per core:  4
Core(s) per socket:  20
Socket(s):           2
NUMA node(s):        2
Model:               2.2 (pvr 004e 1202)
Model name:          POWER9, altivec supported

And this XML output from virsh capabilities:

    <cpu>
      <arch>ppc64le</arch>
      <model>POWER9</model>
      <vendor>IBM</vendor>
      <topology sockets='1' dies='1' cores='20' threads='4'/>
      (...)
    </cpu>

Both are correct, as long as we mention in the Libvirt documentation
that 'sockets' in the topology element represents the number of sockets
per NUMA node.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-04-06 15:56:14 +02:00
..
2016-11-21 13:15:12 +01:00
2020-03-04 11:25:03 +01:00
2019-06-20 17:01:44 +02:00
2020-03-04 12:08:50 +01:00
2019-08-29 12:46:33 +01:00
2020-04-06 13:55:27 +02:00
2017-10-16 10:22:34 +01:00
2019-12-20 12:25:42 -05:00
2019-12-20 12:25:42 -05:00
2019-12-23 10:08:05 +00:00
2019-08-28 13:39:26 +02:00
2018-12-17 17:52:46 +01:00
2019-12-04 15:48:28 +00:00
2017-08-02 15:00:28 -04:00
2019-07-09 10:42:39 -05:00