mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: move NUMA capabilities into self contained object
The NUMA cells are stored directly in the virCapsHostPtr struct. This moves them into their own struct allowing them to be stored independantly of the rest of the host capabilities. The change is used as an excuse to switch the representation to use a GPtrArray too. Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -205,7 +205,7 @@ virCapsPtr testQemuCapsInit(void)
|
||||
* Build a NUMA topology with cell_id (NUMA node id
|
||||
* being 3(0 + 3),4(1 + 3), 5 and 6
|
||||
*/
|
||||
if (virTestCapsBuildNUMATopology(caps, 3) < 0)
|
||||
if (!(caps->host.numa = virTestCapsBuildNUMATopology(3)))
|
||||
goto cleanup;
|
||||
|
||||
for (i = 0; i < VIR_ARCH_LAST; i++) {
|
||||
|
||||
Reference in New Issue
Block a user