libvirt/src/conf
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
..
backup_conf.c conf: Always format storage source auth and encryption under <source> for backing files 2020-01-13 12:53:58 +01:00
backup_conf.h conf: backup: Add fields for tracking stats of completed sub-jobs 2019-12-10 12:41:58 +01:00
capabilities.c hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
capabilities.h hostcpu: add support for reporting die_id in NUMA topology 2020-01-16 15:11:55 +00:00
checkpoint_conf.c conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
checkpoint_conf.h conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
cpu_conf.c conf: add support for specifying CPU "dies" parameter 2020-01-16 15:11:42 +00:00
cpu_conf.h conf: add support for specifying CPU "dies" parameter 2020-01-16 15:11:42 +00:00
device_conf.c Introducing new address type='unassigned' for PCI hostdevs 2019-12-18 13:08:27 -05:00
device_conf.h Introducing new address type='unassigned' for PCI hostdevs 2019-12-18 13:08:27 -05:00
domain_addr.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
domain_addr.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
domain_audit.c conf: Get rid of "no_memory" labels 2019-12-20 17:02:39 -05:00
domain_audit.h
domain_capabilities.c conf: domaincaps: Add 'backup' feature flag 2019-12-10 12:41:58 +01:00
domain_capabilities.h conf: domaincaps: Add 'backup' feature flag 2019-12-10 12:41:58 +01:00
domain_conf.c conf: add support for specifying CPU "dies" parameter 2020-01-16 15:11:42 +00:00
domain_conf.h conf: Always format storage source auth and encryption under <source> for backing files 2020-01-13 12:53:58 +01:00
domain_event.c conf: remove NULL check from virDomainQemuMonitorEventNew 2019-11-21 12:44:23 +01:00
domain_event.h conf: remove NULL check from virDomainQemuMonitorEventNew 2019-11-21 12:44:23 +01:00
domain_nwfilter.c
domain_nwfilter.h
interface_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
interface_conf.h
Makefile.inc.am backup: Parse and output backup XML 2019-12-10 12:41:56 +01:00
moment_conf.c src: replace clock_gettime()/gettimeofday() with g_get_real_time() 2020-01-03 15:42:13 +00:00
moment_conf.h
netdev_bandwidth_conf.c conf: make virDomainNetGetActualBandwidth arg/return value const 2019-11-25 15:29:51 -05:00
netdev_bandwidth_conf.h conf: make virDomainNetGetActualBandwidth arg/return value const 2019-11-25 15:29:51 -05:00
netdev_vlan_conf.c
netdev_vlan_conf.h
netdev_vport_profile_conf.c conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
netdev_vport_profile_conf.h conf: return a const from virDomainNetGetActualVirtPortProfile 2019-11-25 15:29:56 -05:00
network_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
network_conf.h
network_event.c
network_event.h
networkcommon_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
networkcommon_conf.h
node_device_conf.c src: replace mdir_name() with g_path_get_dirname() 2020-01-03 15:42:13 +00:00
node_device_conf.h
node_device_event.c
node_device_event.h
node_device_util.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
node_device_util.h
numa_conf.c numa_conf: add virDomainNumaNodesDistancesAreBeingSet() helper 2019-12-16 17:50:31 -05:00
numa_conf.h numa_conf: add virDomainNumaNodesDistancesAreBeingSet() helper 2019-12-16 17:50:31 -05:00
nwfilter_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
nwfilter_conf.h
nwfilter_ipaddrmap.c
nwfilter_ipaddrmap.h
nwfilter_params.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
nwfilter_params.h
object_event_private.h
object_event.c
object_event.h
secret_conf.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
secret_conf.h
secret_event.c
secret_event.h
snapshot_conf_priv.h
snapshot_conf.c conf: Always format storage source auth and encryption under <source> for backing files 2020-01-13 12:53:58 +01:00
snapshot_conf.h conf: drop virCapsPtr param from snapshot & checkpoint APIs 2019-12-09 10:17:27 +00:00
storage_adapter_conf.c
storage_adapter_conf.h
storage_capabilities.c conf: storagecaps: Fix broken attempt at being const-correct 2019-11-12 14:37:57 +01:00
storage_capabilities.h conf: storagecaps: Fix broken attempt at being const-correct 2019-11-12 14:37:57 +01:00
storage_conf.c storage: add vmfs filesystem type 2019-12-20 14:31:08 +01:00
storage_conf.h storage: add vmfs filesystem type 2019-12-20 14:31:08 +01:00
storage_event.c
storage_event.h
virchrdev.c virchrdev: Drop needless 'cleanup' label in virChrdevLockFileCreate() 2020-01-16 14:13:47 +01:00
virchrdev.h
virconftypes.h backup: Parse and output backup XML 2019-12-10 12:41:56 +01:00
virdomaincheckpointobjlist.c
virdomaincheckpointobjlist.h
virdomainmomentobjlist.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virdomainmomentobjlist.h
virdomainobjlist.c conf: drop virCapsPtr param from domain obj list APIs 2019-12-09 10:17:27 +00:00
virdomainobjlist.h conf: drop virCapsPtr param from domain obj list APIs 2019-12-09 10:17:27 +00:00
virdomainsnapshotobjlist.c
virdomainsnapshotobjlist.h
virinterfaceobj.c
virinterfaceobj.h
virnetworkobj.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
virnetworkobj.h
virnetworkportdef.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virnetworkportdef.h
virnodedeviceobj.c
virnodedeviceobj.h
virnwfilterbindingdef.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virnwfilterbindingdef.h
virnwfilterbindingobj.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virnwfilterbindingobj.h
virnwfilterbindingobjlist.c
virnwfilterbindingobjlist.h
virnwfilterobj.c
virnwfilterobj.h
virsavecookie.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virsavecookie.h
virsecretobj.c conf: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virsecretobj.h
virstorageobj.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virstorageobj.h