2014-06-06 14:50:39 +00:00
|
|
|
/*
|
2015-02-11 09:08:35 +00:00
|
|
|
* numa_conf.h
|
2014-06-06 14:50:39 +00:00
|
|
|
*
|
2015-02-11 09:08:35 +00:00
|
|
|
* Copyright (C) 2014-2015 Red Hat, Inc.
|
2014-06-06 14:50:39 +00:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see
|
|
|
|
* <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2019-06-07 20:20:21 +00:00
|
|
|
#pragma once
|
2014-06-06 14:50:39 +00:00
|
|
|
|
2019-06-07 20:20:21 +00:00
|
|
|
#include <libxml/xpath.h>
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2019-06-07 20:20:21 +00:00
|
|
|
#include "internal.h"
|
|
|
|
#include "virbitmap.h"
|
|
|
|
#include "virbuffer.h"
|
|
|
|
#include "virenum.h"
|
2014-06-09 13:00:22 +00:00
|
|
|
|
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
typedef struct _virDomainNuma virDomainNuma;
|
|
|
|
typedef virDomainNuma *virDomainNumaPtr;
|
2014-06-06 14:50:39 +00:00
|
|
|
|
|
|
|
typedef enum {
|
2014-06-08 17:15:42 +00:00
|
|
|
VIR_DOMAIN_NUMATUNE_PLACEMENT_DEFAULT = 0,
|
|
|
|
VIR_DOMAIN_NUMATUNE_PLACEMENT_STATIC,
|
|
|
|
VIR_DOMAIN_NUMATUNE_PLACEMENT_AUTO,
|
2014-06-06 14:50:39 +00:00
|
|
|
|
2014-06-08 17:15:42 +00:00
|
|
|
VIR_DOMAIN_NUMATUNE_PLACEMENT_LAST
|
|
|
|
} virDomainNumatunePlacement;
|
2014-06-06 14:50:39 +00:00
|
|
|
|
2019-01-20 16:04:56 +00:00
|
|
|
VIR_ENUM_DECL(virDomainNumatunePlacement);
|
|
|
|
VIR_ENUM_DECL(virDomainNumatuneMemMode);
|
2014-06-06 14:50:39 +00:00
|
|
|
|
2015-02-11 14:40:27 +00:00
|
|
|
typedef enum {
|
2017-02-02 13:27:30 +00:00
|
|
|
VIR_DOMAIN_MEMORY_ACCESS_DEFAULT = 0, /* No memory access defined */
|
|
|
|
VIR_DOMAIN_MEMORY_ACCESS_SHARED, /* Memory access is set as shared */
|
|
|
|
VIR_DOMAIN_MEMORY_ACCESS_PRIVATE, /* Memory access is set as private */
|
2015-02-11 14:40:27 +00:00
|
|
|
|
2017-02-02 13:27:30 +00:00
|
|
|
VIR_DOMAIN_MEMORY_ACCESS_LAST,
|
|
|
|
} virDomainMemoryAccess;
|
2019-01-20 16:04:56 +00:00
|
|
|
VIR_ENUM_DECL(virDomainMemoryAccess);
|
2015-02-11 14:40:27 +00:00
|
|
|
|
2020-05-27 09:46:33 +00:00
|
|
|
typedef enum {
|
|
|
|
VIR_DOMAIN_CACHE_ASSOCIATIVITY_NONE, /* No associativity */
|
|
|
|
VIR_DOMAIN_CACHE_ASSOCIATIVITY_DIRECT, /* Direct mapped cache */
|
|
|
|
VIR_DOMAIN_CACHE_ASSOCIATIVITY_FULL, /* Fully associative cache */
|
|
|
|
|
|
|
|
VIR_DOMAIN_CACHE_ASSOCIATIVITY_LAST
|
|
|
|
} virDomainCacheAssociativity;
|
|
|
|
VIR_ENUM_DECL(virDomainCacheAssociativity);
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
VIR_DOMAIN_CACHE_POLICY_NONE, /* No policy */
|
|
|
|
VIR_DOMAIN_CACHE_POLICY_WRITEBACK, /* Write-back policy */
|
|
|
|
VIR_DOMAIN_CACHE_POLICY_WRITETHROUGH, /* Write-through policy */
|
|
|
|
|
|
|
|
VIR_DOMAIN_CACHE_POLICY_LAST
|
|
|
|
} virDomainCachePolicy;
|
|
|
|
VIR_ENUM_DECL(virDomainCachePolicy);
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
VIR_DOMAIN_NUMA_INTERCONNECT_TYPE_LATENCY,
|
|
|
|
VIR_DOMAIN_NUMA_INTERCONNECT_TYPE_BANDWIDTH,
|
|
|
|
} virDomainNumaInterconnectType;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
VIR_DOMAIN_MEMORY_LATENCY_NONE = 0, /* No memory latency defined */
|
|
|
|
VIR_DOMAIN_MEMORY_LATENCY_ACCESS, /* Access latency */
|
|
|
|
VIR_DOMAIN_MEMORY_LATENCY_READ, /* Read latency */
|
|
|
|
VIR_DOMAIN_MEMORY_LATENCY_WRITE, /* Write latency */
|
|
|
|
|
|
|
|
VIR_DOMAIN_MEMORY_LATENCY_LAST
|
|
|
|
} virDomainMemoryLatency;
|
|
|
|
VIR_ENUM_DECL(virDomainMemoryLatency);
|
|
|
|
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2015-02-16 15:42:13 +00:00
|
|
|
virDomainNumaPtr virDomainNumaNew(void);
|
2015-02-11 13:54:59 +00:00
|
|
|
void virDomainNumaFree(virDomainNumaPtr numa);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* XML Parse/Format functions
|
|
|
|
*/
|
2015-02-16 16:19:15 +00:00
|
|
|
int virDomainNumatuneParseXML(virDomainNumaPtr numa,
|
2014-07-21 09:32:33 +00:00
|
|
|
bool placement_static,
|
|
|
|
xmlXPathContextPtr ctxt)
|
2015-02-16 16:28:48 +00:00
|
|
|
ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(3);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
int virDomainNumatuneFormatXML(virBufferPtr buf, virDomainNumaPtr numatune)
|
2014-06-09 13:00:22 +00:00
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Getters
|
|
|
|
*/
|
2015-05-19 09:55:26 +00:00
|
|
|
int virDomainNumatuneGetMode(virDomainNumaPtr numatune,
|
|
|
|
int cellid,
|
|
|
|
virDomainNumatuneMemMode *mode);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
virBitmapPtr virDomainNumatuneGetNodeset(virDomainNumaPtr numatune,
|
2014-06-26 17:46:45 +00:00
|
|
|
virBitmapPtr auto_nodeset,
|
|
|
|
int cellid);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
int virDomainNumatuneMaybeGetNodeset(virDomainNumaPtr numatune,
|
2015-01-15 21:40:15 +00:00
|
|
|
virBitmapPtr auto_nodeset,
|
|
|
|
virBitmapPtr *retNodeset,
|
|
|
|
int cellid);
|
|
|
|
|
2017-03-21 17:24:36 +00:00
|
|
|
size_t virDomainNumaGetNodeCount(virDomainNumaPtr numa);
|
|
|
|
|
2017-11-14 13:28:11 +00:00
|
|
|
bool virDomainNumaNodeDistanceIsUsingDefaults(virDomainNumaPtr numa,
|
|
|
|
size_t node,
|
|
|
|
size_t sibling)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2019-12-09 23:15:11 +00:00
|
|
|
bool virDomainNumaNodesDistancesAreBeingSet(virDomainNumaPtr numa)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
xenconfig: add domxml conversions for xen-xl
This patch converts NUMA configurations between the Xen libxl
configuration file format and libvirt's XML format.
XML HVM domain on a 4 node (2 cores/socket) configuration:
<cpu>
<numa>
<cell id='0' cpus='0-1' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='10'/>
<sibling id='1' value='21'/>
<sibling id='2' value='31'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='1' cpus='2-3' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='10'/>
<sibling id='2' value='21'/>
<sibling id='3' value='31'/>
</distances>
</cell>
<cell id='2' cpus='3-4' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='31'/>
<sibling id='1' value='21'/>
<sibling id='2' value='10'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='3' cpus='5-6' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='31'/>
<sibling id='2' value='21'/>
<sibling id='3' value='10'/>
</distances>
</cell>
</numa>
</cpu>
Xen xl.cfg domain configuration:
vnuma = [["pnode=0","size=2048","vcpus=0-1","vdistances=10,21,31,21"],
["pnode=1","size=2048","vcpus=2-3","vdistances=21,10,21,31"],
["pnode=2","size=2048","vcpus=4-5","vdistances=31,21,10,21"],
["pnode=3","size=2048","vcpus=6-7","vdistances=21,31,21,10"]]
If there is no XML <distances> description amongst the <cell> data the
conversion schema from xml to native will generate 10 for local and 20
for all remote instances.
Signed-off-by: Wim ten Have <wim.ten.have@oracle.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2017-11-02 15:47:21 +00:00
|
|
|
size_t virDomainNumaGetNodeDistance(virDomainNumaPtr numa,
|
|
|
|
size_t node,
|
|
|
|
size_t sibling)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2015-02-16 16:28:48 +00:00
|
|
|
virBitmapPtr virDomainNumaGetNodeCpumask(virDomainNumaPtr numa,
|
2015-02-16 17:38:43 +00:00
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2017-02-02 13:27:30 +00:00
|
|
|
virDomainMemoryAccess virDomainNumaGetNodeMemoryAccessMode(virDomainNumaPtr numa,
|
2015-02-16 17:51:36 +00:00
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2018-05-11 13:08:53 +00:00
|
|
|
virTristateBool virDomainNumaGetNodeDiscard(virDomainNumaPtr numa,
|
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2015-02-16 16:28:48 +00:00
|
|
|
unsigned long long virDomainNumaGetNodeMemorySize(virDomainNumaPtr numa,
|
2015-02-16 18:14:23 +00:00
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2015-02-16 19:15:04 +00:00
|
|
|
unsigned long long virDomainNumaGetMemorySize(virDomainNumaPtr numa)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2015-02-16 17:11:46 +00:00
|
|
|
|
2015-08-07 14:31:57 +00:00
|
|
|
unsigned int
|
|
|
|
virDomainNumaGetMaxCPUID(virDomainNumaPtr numa);
|
|
|
|
|
2014-06-09 13:00:22 +00:00
|
|
|
/*
|
|
|
|
* Formatters
|
|
|
|
*/
|
2015-02-11 13:54:59 +00:00
|
|
|
char *virDomainNumatuneFormatNodeset(virDomainNumaPtr numatune,
|
2014-06-26 17:46:45 +00:00
|
|
|
virBitmapPtr auto_nodeset,
|
|
|
|
int cellid);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
int virDomainNumatuneMaybeFormatNodeset(virDomainNumaPtr numatune,
|
2014-06-09 13:00:22 +00:00
|
|
|
virBitmapPtr auto_nodeset,
|
2014-06-26 17:46:45 +00:00
|
|
|
char **mask,
|
|
|
|
int cellid);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Setters
|
|
|
|
*/
|
2015-02-16 16:05:46 +00:00
|
|
|
int virDomainNumatuneSet(virDomainNumaPtr numa,
|
2014-07-21 09:32:33 +00:00
|
|
|
bool placement_static,
|
|
|
|
int placement,
|
|
|
|
int mode,
|
|
|
|
virBitmapPtr nodeset)
|
2014-06-09 13:00:22 +00:00
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
xenconfig: add domxml conversions for xen-xl
This patch converts NUMA configurations between the Xen libxl
configuration file format and libvirt's XML format.
XML HVM domain on a 4 node (2 cores/socket) configuration:
<cpu>
<numa>
<cell id='0' cpus='0-1' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='10'/>
<sibling id='1' value='21'/>
<sibling id='2' value='31'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='1' cpus='2-3' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='10'/>
<sibling id='2' value='21'/>
<sibling id='3' value='31'/>
</distances>
</cell>
<cell id='2' cpus='3-4' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='31'/>
<sibling id='1' value='21'/>
<sibling id='2' value='10'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='3' cpus='5-6' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='31'/>
<sibling id='2' value='21'/>
<sibling id='3' value='10'/>
</distances>
</cell>
</numa>
</cpu>
Xen xl.cfg domain configuration:
vnuma = [["pnode=0","size=2048","vcpus=0-1","vdistances=10,21,31,21"],
["pnode=1","size=2048","vcpus=2-3","vdistances=21,10,21,31"],
["pnode=2","size=2048","vcpus=4-5","vdistances=31,21,10,21"],
["pnode=3","size=2048","vcpus=6-7","vdistances=21,31,21,10"]]
If there is no XML <distances> description amongst the <cell> data the
conversion schema from xml to native will generate 10 for local and 20
for all remote instances.
Signed-off-by: Wim ten Have <wim.ten.have@oracle.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2017-11-02 15:47:21 +00:00
|
|
|
size_t virDomainNumaSetNodeCount(virDomainNumaPtr numa,
|
|
|
|
size_t nmem_nodes)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2015-02-16 16:28:48 +00:00
|
|
|
void virDomainNumaSetNodeMemorySize(virDomainNumaPtr numa,
|
2015-02-16 18:14:23 +00:00
|
|
|
size_t node,
|
|
|
|
unsigned long long size)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
xenconfig: add domxml conversions for xen-xl
This patch converts NUMA configurations between the Xen libxl
configuration file format and libvirt's XML format.
XML HVM domain on a 4 node (2 cores/socket) configuration:
<cpu>
<numa>
<cell id='0' cpus='0-1' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='10'/>
<sibling id='1' value='21'/>
<sibling id='2' value='31'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='1' cpus='2-3' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='10'/>
<sibling id='2' value='21'/>
<sibling id='3' value='31'/>
</distances>
</cell>
<cell id='2' cpus='3-4' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='31'/>
<sibling id='1' value='21'/>
<sibling id='2' value='10'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='3' cpus='5-6' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='31'/>
<sibling id='2' value='21'/>
<sibling id='3' value='10'/>
</distances>
</cell>
</numa>
</cpu>
Xen xl.cfg domain configuration:
vnuma = [["pnode=0","size=2048","vcpus=0-1","vdistances=10,21,31,21"],
["pnode=1","size=2048","vcpus=2-3","vdistances=21,10,21,31"],
["pnode=2","size=2048","vcpus=4-5","vdistances=31,21,10,21"],
["pnode=3","size=2048","vcpus=6-7","vdistances=21,31,21,10"]]
If there is no XML <distances> description amongst the <cell> data the
conversion schema from xml to native will generate 10 for local and 20
for all remote instances.
Signed-off-by: Wim ten Have <wim.ten.have@oracle.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2017-11-02 15:47:21 +00:00
|
|
|
int virDomainNumaSetNodeDistance(virDomainNumaPtr numa,
|
|
|
|
size_t node,
|
|
|
|
size_t sibling,
|
|
|
|
unsigned int value)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
|
|
|
size_t virDomainNumaSetNodeDistanceCount(virDomainNumaPtr numa,
|
|
|
|
size_t node,
|
|
|
|
size_t ndistances)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2020-05-27 09:49:51 +00:00
|
|
|
void virDomainNumaSetNodeCpumask(virDomainNumaPtr numa,
|
|
|
|
size_t node,
|
|
|
|
virBitmapPtr cpumask)
|
xenconfig: add domxml conversions for xen-xl
This patch converts NUMA configurations between the Xen libxl
configuration file format and libvirt's XML format.
XML HVM domain on a 4 node (2 cores/socket) configuration:
<cpu>
<numa>
<cell id='0' cpus='0-1' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='10'/>
<sibling id='1' value='21'/>
<sibling id='2' value='31'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='1' cpus='2-3' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='10'/>
<sibling id='2' value='21'/>
<sibling id='3' value='31'/>
</distances>
</cell>
<cell id='2' cpus='3-4' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='31'/>
<sibling id='1' value='21'/>
<sibling id='2' value='10'/>
<sibling id='3' value='21'/>
</distances>
</cell>
<cell id='3' cpus='5-6' memory='2097152' unit='KiB'>
<distances>
<sibling id='0' value='21'/>
<sibling id='1' value='31'/>
<sibling id='2' value='21'/>
<sibling id='3' value='10'/>
</distances>
</cell>
</numa>
</cpu>
Xen xl.cfg domain configuration:
vnuma = [["pnode=0","size=2048","vcpus=0-1","vdistances=10,21,31,21"],
["pnode=1","size=2048","vcpus=2-3","vdistances=21,10,21,31"],
["pnode=2","size=2048","vcpus=4-5","vdistances=31,21,10,21"],
["pnode=3","size=2048","vcpus=6-7","vdistances=21,31,21,10"]]
If there is no XML <distances> description amongst the <cell> data the
conversion schema from xml to native will generate 10 for local and 20
for all remote instances.
Signed-off-by: Wim ten Have <wim.ten.have@oracle.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
2017-11-02 15:47:21 +00:00
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2014-06-09 13:00:22 +00:00
|
|
|
/*
|
|
|
|
* Other accessors
|
|
|
|
*/
|
2015-02-11 13:54:59 +00:00
|
|
|
bool virDomainNumaEquals(virDomainNumaPtr n1,
|
|
|
|
virDomainNumaPtr n2);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2015-02-16 19:34:37 +00:00
|
|
|
bool virDomainNumaCheckABIStability(virDomainNumaPtr src,
|
|
|
|
virDomainNumaPtr tgt);
|
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
bool virDomainNumatuneHasPlacementAuto(virDomainNumaPtr numatune);
|
2014-06-06 14:50:39 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
bool virDomainNumatuneHasPerNodeBinding(virDomainNumaPtr numatune);
|
2014-06-26 17:46:45 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
int virDomainNumatuneSpecifiedMaxNode(virDomainNumaPtr numatune);
|
2014-11-06 11:16:54 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
bool virDomainNumatuneNodesetIsAvailable(virDomainNumaPtr numatune,
|
2014-11-06 11:16:54 +00:00
|
|
|
virBitmapPtr auto_nodeset);
|
2015-02-12 16:37:46 +00:00
|
|
|
|
2015-02-11 13:54:59 +00:00
|
|
|
bool virDomainNumatuneNodeSpecified(virDomainNumaPtr numatune,
|
2015-02-12 16:37:46 +00:00
|
|
|
int cellid);
|
2015-02-11 11:27:53 +00:00
|
|
|
|
2020-05-28 14:52:22 +00:00
|
|
|
int virDomainNumaDefParseXML(virDomainNumaPtr def, xmlXPathContextPtr ctxt);
|
|
|
|
int virDomainNumaDefFormatXML(virBufferPtr buf, virDomainNumaPtr def);
|
2020-05-28 15:23:00 +00:00
|
|
|
int virDomainNumaDefValidate(const virDomainNuma *def);
|
2015-02-11 11:27:53 +00:00
|
|
|
|
2015-02-16 16:28:48 +00:00
|
|
|
unsigned int virDomainNumaGetCPUCountTotal(virDomainNumaPtr numa);
|
2020-06-10 18:35:50 +00:00
|
|
|
|
|
|
|
int virDomainNumaFillCPUsInNode(virDomainNumaPtr numa, size_t node,
|
|
|
|
unsigned int maxCpus);
|