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;
|
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
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virDomainNuma *virDomainNumaNew(void);
|
|
|
|
void virDomainNumaFree(virDomainNuma *numa);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* XML Parse/Format functions
|
|
|
|
*/
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumatuneParseXML(virDomainNuma *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
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumatuneFormatXML(virBuffer *buf, virDomainNuma *numatune)
|
2014-06-09 13:00:22 +00:00
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Getters
|
|
|
|
*/
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumatuneGetMode(virDomainNuma *numatune,
|
2015-05-19 09:55:26 +00:00
|
|
|
int cellid,
|
|
|
|
virDomainNumatuneMemMode *mode);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *virDomainNumatuneGetNodeset(virDomainNuma *numatune,
|
|
|
|
virBitmap *auto_nodeset,
|
2014-06-26 17:46:45 +00:00
|
|
|
int cellid);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumatuneMaybeGetNodeset(virDomainNuma *numatune,
|
|
|
|
virBitmap *auto_nodeset,
|
|
|
|
virBitmap **retNodeset,
|
2015-01-15 21:40:15 +00:00
|
|
|
int cellid);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
size_t virDomainNumaGetNodeCount(virDomainNuma *numa);
|
2017-03-21 17:24:36 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumaNodeDistanceIsUsingDefaults(virDomainNuma *numa,
|
2017-11-14 13:28:11 +00:00
|
|
|
size_t node,
|
|
|
|
size_t sibling)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumaNodesDistancesAreBeingSet(virDomainNuma *numa)
|
2019-12-09 23:15:11 +00:00
|
|
|
ATTRIBUTE_NONNULL(1);
|
2021-03-11 07:16:13 +00:00
|
|
|
size_t virDomainNumaGetNodeDistance(virDomainNuma *numa,
|
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 node,
|
|
|
|
size_t sibling)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *virDomainNumaGetNodeCpumask(virDomainNuma *numa,
|
2015-02-16 17:38:43 +00:00
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2021-03-11 07:16:13 +00:00
|
|
|
virDomainMemoryAccess virDomainNumaGetNodeMemoryAccessMode(virDomainNuma *numa,
|
2015-02-16 17:51:36 +00:00
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2021-03-11 07:16:13 +00:00
|
|
|
virTristateBool virDomainNumaGetNodeDiscard(virDomainNuma *numa,
|
2018-05-11 13:08:53 +00:00
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2021-03-11 07:16:13 +00:00
|
|
|
unsigned long long virDomainNumaGetNodeMemorySize(virDomainNuma *numa,
|
2015-02-16 18:14:23 +00:00
|
|
|
size_t node)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
2021-03-11 07:16:13 +00:00
|
|
|
unsigned long long virDomainNumaGetMemorySize(virDomainNuma *numa)
|
2015-02-16 19:15:04 +00:00
|
|
|
ATTRIBUTE_NONNULL(1);
|
2015-02-16 17:11:46 +00:00
|
|
|
|
2015-08-07 14:31:57 +00:00
|
|
|
unsigned int
|
2021-03-11 07:16:13 +00:00
|
|
|
virDomainNumaGetMaxCPUID(virDomainNuma *numa);
|
2015-08-07 14:31:57 +00:00
|
|
|
|
2014-06-09 13:00:22 +00:00
|
|
|
/*
|
|
|
|
* Formatters
|
|
|
|
*/
|
2021-03-11 07:16:13 +00:00
|
|
|
char *virDomainNumatuneFormatNodeset(virDomainNuma *numatune,
|
|
|
|
virBitmap *auto_nodeset,
|
2014-06-26 17:46:45 +00:00
|
|
|
int cellid);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumatuneMaybeFormatNodeset(virDomainNuma *numatune,
|
|
|
|
virBitmap *auto_nodeset,
|
2014-06-26 17:46:45 +00:00
|
|
|
char **mask,
|
|
|
|
int cellid);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Setters
|
|
|
|
*/
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumatuneSet(virDomainNuma *numa,
|
2014-07-21 09:32:33 +00:00
|
|
|
bool placement_static,
|
|
|
|
int placement,
|
|
|
|
int mode,
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *nodeset)
|
2014-06-09 13:00:22 +00:00
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
size_t virDomainNumaSetNodeCount(virDomainNuma *numa,
|
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 nmem_nodes)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
void virDomainNumaSetNodeMemorySize(virDomainNuma *numa,
|
2015-02-16 18:14:23 +00:00
|
|
|
size_t node,
|
|
|
|
unsigned long long size)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumaSetNodeDistance(virDomainNuma *numa,
|
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 node,
|
|
|
|
size_t sibling,
|
|
|
|
unsigned int value)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
size_t virDomainNumaSetNodeDistanceCount(virDomainNuma *numa,
|
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 node,
|
|
|
|
size_t ndistances)
|
|
|
|
ATTRIBUTE_NONNULL(1);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
void virDomainNumaSetNodeCpumask(virDomainNuma *numa,
|
2020-05-27 09:49:51 +00:00
|
|
|
size_t node,
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *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
|
|
|
|
*/
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumaEquals(virDomainNuma *n1,
|
|
|
|
virDomainNuma *n2);
|
2014-06-09 13:00:22 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumaCheckABIStability(virDomainNuma *src,
|
|
|
|
virDomainNuma *tgt);
|
2015-02-16 19:34:37 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumatuneHasPlacementAuto(virDomainNuma *numatune);
|
2014-06-06 14:50:39 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumatuneHasPerNodeBinding(virDomainNuma *numatune);
|
2014-06-26 17:46:45 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumatuneSpecifiedMaxNode(virDomainNuma *numatune);
|
2014-11-06 11:16:54 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumatuneNodesetIsAvailable(virDomainNuma *numatune,
|
|
|
|
virBitmap *auto_nodeset);
|
2015-02-12 16:37:46 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virDomainNumatuneNodeSpecified(virDomainNuma *numatune,
|
2015-02-12 16:37:46 +00:00
|
|
|
int cellid);
|
2015-02-11 11:27:53 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumaDefParseXML(virDomainNuma *def, xmlXPathContextPtr ctxt);
|
|
|
|
int virDomainNumaDefFormatXML(virBuffer *buf, virDomainNuma *def);
|
2020-05-28 15:23:00 +00:00
|
|
|
int virDomainNumaDefValidate(const virDomainNuma *def);
|
2015-02-11 11:27:53 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
unsigned int virDomainNumaGetCPUCountTotal(virDomainNuma *numa);
|
2020-06-10 18:35:50 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virDomainNumaFillCPUsInNode(virDomainNuma *numa, size_t node,
|
2020-06-10 18:35:50 +00:00
|
|
|
unsigned int maxCpus);
|
2020-05-29 12:55:57 +00:00
|
|
|
|
|
|
|
bool virDomainNumaHasHMAT(const virDomainNuma *numa);
|
|
|
|
|
|
|
|
size_t virDomainNumaGetNodeCacheCount(const virDomainNuma *numa,
|
|
|
|
size_t node);
|
|
|
|
|
|
|
|
int virDomainNumaGetNodeCache(const virDomainNuma *numa,
|
|
|
|
size_t node,
|
|
|
|
size_t cache,
|
|
|
|
unsigned int *level,
|
|
|
|
unsigned int *size,
|
|
|
|
unsigned int *line,
|
|
|
|
virDomainCacheAssociativity *associativity,
|
|
|
|
virDomainCachePolicy *policy);
|
|
|
|
|
|
|
|
ssize_t virDomainNumaGetNodeInitiator(const virDomainNuma *numa,
|
|
|
|
size_t node);
|
|
|
|
|
|
|
|
size_t virDomainNumaGetInterconnectsCount(const virDomainNuma *numa);
|
|
|
|
|
|
|
|
int virDomainNumaGetInterconnect(const virDomainNuma *numa,
|
|
|
|
size_t i,
|
|
|
|
virDomainNumaInterconnectType *type,
|
|
|
|
unsigned int *initiator,
|
|
|
|
unsigned int *target,
|
|
|
|
unsigned int *cache,
|
|
|
|
virDomainMemoryLatency *accessType,
|
|
|
|
unsigned long *value);
|