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 conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
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 conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
domain_nwfilter.h conf: domain: use #pragma once in headers 2019-06-13 17:05:08 +02:00
interface_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
interface_conf.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 snapshot: Store both config and live XML in the snapshot domain 2019-09-11 13:09:45 +02:00
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 Always put _LAST enums on second line of VIR_ENUM_IMPL 2019-04-11 12:47:23 -04:00
netdev_vlan_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 conf: network: use generic XML namespace types 2019-08-21 10:29:20 +02:00
network_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
network_event.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
networkcommon_conf.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
networkcommon_conf.h conf: network: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
node_device_event.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
node_device_util.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
node_device_util.h conf: node device: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_ipaddrmap.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
nwfilter_ipaddrmap.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
nwfilter_params.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
nwfilter_params.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event_private.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
object_event.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
object_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
secret_conf.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
secret_conf.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
secret_event.c Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
secret_event.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
snapshot_conf_priv.h conf: snapshot: Provide a function to free virDomainSnapshotDiskDefPtr 2019-07-18 17:59:34 +02:00
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 conf: make virPCIDeviceAddressFormat void 2019-02-19 15:59:38 +00:00
storage_adapter_conf.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
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 Require a semicolon for VIR_ONCE_GLOBAL_INIT calls 2019-02-03 17:46:29 -05:00
storage_event.h conf: storage: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virchrdev.c virchrdev: Drop needless 'cleanup' label in virChrdevLockFileCreate() 2020-01-16 14:13:47 +01:00
virchrdev.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virconftypes.h backup: Parse and output backup XML 2019-12-10 12:41:56 +01:00
virdomaincheckpointobjlist.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virdomaincheckpointobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
virdomainmomentobjlist.c util: consolidate on one free callback for hash data 2019-11-22 14:21:28 +00:00
virdomainmomentobjlist.h backup: Allow for lists of checkpoint objects 2019-07-26 16:48:58 -05:00
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 Use G_N_ELEMENTS instead of ARRAY_CARDINALITY 2019-10-15 16:14:19 +02:00
virdomainsnapshotobjlist.h snapshot: Don't leak moment obj list metaroot to callers 2019-07-24 17:03:34 -05:00
virinterfaceobj.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
virinterfaceobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnetworkobj.c conf: remove unneeded labels 2020-01-07 16:40:41 +01:00
virnetworkobj.h Use G_GNUC_WARN_UNUSED_RESULT instead of ATTRIBUTE_RETURN_CHECK 2019-10-15 11:25:22 +02:00
virnetworkportdef.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virnetworkportdef.h Use G_DEFINE_AUTOPTR_CLEANUP_FUNC instead of VIR_DEFINE_AUTOPTR_FUNC 2019-10-16 12:06:43 +02:00
virnodedeviceobj.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
virnodedeviceobj.h nodedev: acquire a pidfile in the driver root directory 2019-07-11 12:46:20 +01:00
virnwfilterbindingdef.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virnwfilterbindingdef.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterbindingobj.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virnwfilterbindingobj.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterbindingobjlist.c conf: use G_GNUC_UNUSED 2019-10-15 11:25:22 +02:00
virnwfilterbindingobjlist.h conf: nwfilter: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virnwfilterobj.c conf: use g_strdup instead of VIR_STRDUP 2019-10-21 12:51:56 +02:00
virnwfilterobj.h nwfilter: acquire a pidfile in the driver root directory 2019-07-11 12:46:20 +01:00
virsavecookie.c util: buffer: Remove virBufferCheckError 2019-10-24 19:35:34 +02:00
virsavecookie.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virsecretobj.c conf: remove unneeded cleanup labels 2019-11-12 17:54:01 +01:00
virsecretobj.h conf: misc: use #pragma once in headers 2019-06-13 17:05:09 +02:00
virstorageobj.c conf: Use g_strdup_printf() instead of virAsprintf() 2019-11-12 16:15:58 +01:00
virstorageobj.h storage_driver: Protect pool def during startup and build 2019-08-23 09:32:26 +02:00