mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-13 17:18:01 +03:00
conf: Introduce virCapabilitiesHostNUMAGetMaxNode()
This is just a small helper that will be used later. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
406a6c20a8
commit
20816cbda5
@ -1433,6 +1433,15 @@ virCapabilitiesHostNUMAGetCpus(virCapsHostNUMA *caps,
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
virCapabilitiesHostNUMAGetMaxNode(virCapsHostNUMA *caps)
|
||||
{
|
||||
virCapsHostNUMACell *cell = g_ptr_array_index(caps->cells, caps->cells->len - 1);
|
||||
|
||||
return cell->num;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
virCapabilitiesGetNodeInfo(virNodeInfoPtr nodeinfo)
|
||||
{
|
||||
|
@ -328,6 +328,8 @@ virCapabilitiesFormatXML(virCaps *caps);
|
||||
virBitmap *virCapabilitiesHostNUMAGetCpus(virCapsHostNUMA *caps,
|
||||
virBitmap *nodemask);
|
||||
|
||||
int virCapabilitiesHostNUMAGetMaxNode(virCapsHostNUMA *caps);
|
||||
|
||||
int virCapabilitiesGetNodeInfo(virNodeInfoPtr nodeinfo);
|
||||
|
||||
int virCapabilitiesInitPages(virCaps *caps);
|
||||
|
@ -69,6 +69,7 @@ virCapabilitiesGetNodeInfo;
|
||||
virCapabilitiesHostInitIOMMU;
|
||||
virCapabilitiesHostNUMAAddCell;
|
||||
virCapabilitiesHostNUMAGetCpus;
|
||||
virCapabilitiesHostNUMAGetMaxNode;
|
||||
virCapabilitiesHostNUMANew;
|
||||
virCapabilitiesHostNUMANewHost;
|
||||
virCapabilitiesHostNUMARef;
|
||||
|
Loading…
Reference in New Issue
Block a user