libvirt/tests/vircaps2xmldata
Daniel P. Berrangé 7b79ee2f78 hostcpu: add support for reporting die_id in NUMA topology
Update the host CPU code to report the die_id in the NUMA topology
capabilities. On systems with multiple dies, this fixes the bug
where CPU cores can't be distinguished:

 <cpus num='12'>
   <cpu id='0' socket_id='0' core_id='0' siblings='0'/>
   <cpu id='1' socket_id='0' core_id='1' siblings='1'/>
   <cpu id='2' socket_id='0' core_id='0' siblings='2'/>
   <cpu id='3' socket_id='0' core_id='1' siblings='3'/>
 </cpus>

Notice how core_id is repeated within the scope of the same socket_id.

It now reports

 <cpus num='12'>
   <cpu id='0' socket_id='0' die_id='0' core_id='0' siblings='0'/>
   <cpu id='1' socket_id='0' die_id='0' core_id='1' siblings='1'/>
   <cpu id='2' socket_id='0' die_id='1' core_id='0' siblings='2'/>
   <cpu id='3' socket_id='0' die_id='1' core_id='1' siblings='3'/>
 </cpus>

So core_id is now unique within a (socket_id, die_id) pair.

Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-01-16 15:11:55 +00:00
..
linux-basic/system tests: Drop core_siblings/thread_siblings files 2018-08-14 15:52:33 +02:00
linux-caches/system tests: Drop core_siblings/thread_siblings files 2018-08-14 15:52:33 +02:00
linux-resctrl conf: Introduce RDT monitor host capability 2018-09-20 13:06:02 -04:00
linux-resctrl-cdp
linux-resctrl-cmt conf: Introduce RDT monitor host capability 2018-09-20 13:06:02 -04:00
linux-resctrl-fake-feature conf: Introduce RDT monitor host capability 2018-09-20 13:06:02 -04:00
linux-resctrl-skx tests: Drop core_siblings/thread_siblings files 2018-08-14 15:52:33 +02:00
linux-resctrl-skx-twocaches tests: Drop core_siblings/thread_siblings files 2018-08-14 15:52:33 +02:00
vircaps-aarch64-basic.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-basic.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-caches.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-resctrl-cdp.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-resctrl-cmt.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-resctrl-fake-feature.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-resctrl-skx-twocaches.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-resctrl-skx.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
vircaps-x86_64-resctrl.xml hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00