2008-02-27 04:35:08 +00:00
|
|
|
/*
|
|
|
|
* capabilities.h: hypervisor capabilities
|
|
|
|
*
|
2019-03-15 00:44:34 +00:00
|
|
|
* Copyright (C) 2006-2019 Red Hat, Inc.
|
2008-02-27 04:35:08 +00:00
|
|
|
* Copyright (C) 2006-2008 Daniel P. Berrange
|
|
|
|
*
|
|
|
|
* 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
|
2012-09-20 22:30:55 +00:00
|
|
|
* License along with this library. If not, see
|
2012-07-21 10:06:23 +00:00
|
|
|
* <http://www.gnu.org/licenses/>.
|
2008-02-27 04:35:08 +00:00
|
|
|
*/
|
|
|
|
|
2019-06-07 20:20:21 +00:00
|
|
|
#pragma once
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2019-06-07 20:20:21 +00:00
|
|
|
#include "internal.h"
|
|
|
|
#include "virconftypes.h"
|
|
|
|
#include "cpu_conf.h"
|
|
|
|
#include "virarch.h"
|
|
|
|
#include "virobject.h"
|
|
|
|
#include "virresctrl.h"
|
2009-11-26 17:57:00 +00:00
|
|
|
|
2019-06-07 20:20:21 +00:00
|
|
|
#include <libxml/xpath.h>
|
2008-10-24 11:20:08 +00:00
|
|
|
|
2019-10-23 15:04:20 +00:00
|
|
|
typedef enum {
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_PAE = 0,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_NONPAE,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_IA64_BE,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_ACPI,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_APIC,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_CPUSELECTION,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_DEVICEBOOT,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_DISKSNAPSHOT,
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_HAP,
|
|
|
|
|
|
|
|
VIR_CAPS_GUEST_FEATURE_TYPE_LAST
|
|
|
|
} virCapsGuestFeatureType;
|
|
|
|
|
2008-02-27 04:35:08 +00:00
|
|
|
struct _virCapsGuestFeature {
|
2019-10-23 15:04:20 +00:00
|
|
|
bool present;
|
|
|
|
virTristateSwitch defaultOn;
|
|
|
|
virTristateBool toggle;
|
2008-02-27 04:35:08 +00:00
|
|
|
};
|
|
|
|
|
2009-07-23 17:31:34 +00:00
|
|
|
struct _virCapsGuestMachine {
|
|
|
|
char *name;
|
|
|
|
char *canonical;
|
2013-06-26 15:46:35 +00:00
|
|
|
unsigned int maxCpus;
|
2021-01-22 12:16:23 +00:00
|
|
|
bool deprecated;
|
2009-07-23 17:31:34 +00:00
|
|
|
};
|
|
|
|
|
2008-02-27 04:35:08 +00:00
|
|
|
struct _virCapsGuestDomainInfo {
|
|
|
|
char *emulator;
|
|
|
|
char *loader;
|
|
|
|
int nmachines;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuestMachine **machines;
|
2008-02-27 04:35:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _virCapsGuestDomain {
|
2015-09-17 08:46:55 +00:00
|
|
|
int type; /* virDomainVirtType */
|
2008-02-27 04:35:08 +00:00
|
|
|
virCapsGuestDomainInfo info;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _virCapsGuestArch {
|
2012-12-10 22:28:09 +00:00
|
|
|
virArch id;
|
|
|
|
unsigned int wordsize;
|
2008-02-27 04:35:08 +00:00
|
|
|
virCapsGuestDomainInfo defaultInfo;
|
2010-08-17 21:41:51 +00:00
|
|
|
size_t ndomains;
|
|
|
|
size_t ndomains_max;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuestDomain **domains;
|
2008-02-27 04:35:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _virCapsGuest {
|
2015-04-16 23:18:32 +00:00
|
|
|
int ostype;
|
2008-02-27 04:35:08 +00:00
|
|
|
virCapsGuestArch arch;
|
2019-10-23 15:04:20 +00:00
|
|
|
virCapsGuestFeature features[VIR_CAPS_GUEST_FEATURE_TYPE_LAST];
|
2008-02-27 04:35:08 +00:00
|
|
|
};
|
|
|
|
|
2013-01-22 17:42:08 +00:00
|
|
|
struct _virCapsHostNUMACellCPU {
|
|
|
|
unsigned int id;
|
|
|
|
unsigned int socket_id;
|
2019-12-16 18:10:29 +00:00
|
|
|
unsigned int die_id;
|
2013-01-22 17:42:08 +00:00
|
|
|
unsigned int core_id;
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *siblings;
|
2013-01-22 17:42:08 +00:00
|
|
|
};
|
|
|
|
|
2014-06-06 16:12:51 +00:00
|
|
|
struct _virCapsHostNUMACellPageInfo {
|
|
|
|
unsigned int size; /* page size in kibibytes */
|
2018-04-23 14:36:53 +00:00
|
|
|
unsigned long long avail; /* the size of pool */
|
2014-06-06 16:12:51 +00:00
|
|
|
};
|
|
|
|
|
2008-02-27 04:35:08 +00:00
|
|
|
struct _virCapsHostNUMACell {
|
|
|
|
int num;
|
|
|
|
int ncpus;
|
2013-03-07 16:03:36 +00:00
|
|
|
unsigned long long mem; /* in kibibytes */
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostNUMACellCPU *cpus;
|
2021-05-03 09:04:45 +00:00
|
|
|
size_t ndistances;
|
|
|
|
virNumaDistance *distances;
|
2014-06-06 16:12:51 +00:00
|
|
|
int npageinfo;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostNUMACellPageInfo *pageinfo;
|
2021-04-29 16:58:43 +00:00
|
|
|
GArray *caches; /* virNumaCache */
|
2008-02-27 04:35:08 +00:00
|
|
|
};
|
|
|
|
|
2019-11-29 09:55:59 +00:00
|
|
|
struct _virCapsHostNUMA {
|
|
|
|
gint refs;
|
|
|
|
GPtrArray *cells;
|
capabilities: Expose NUMA interconnects
Links between NUMA nodes can have different latencies and
bandwidths. This info is newly defined in ACPI 6.2 under
Heterogeneous Memory Attribute Table (HMAT) table. Linux kernel
learned how to report these values under sysfs and thus we can
expose them in our capabilities XML. The sysfs interface is
documented in kernel's Documentation/admin-guide/mm/numaperf.rst.
Long story short, two nodes can be in initiator-target
relationship. A node can be initiator if it has a CPU or a device
that's capable of initiating memory transfer. Therefore a node
that has just memory can only be target. An initiator-target link
can then have any combination of {bandwidth, latency} - {access,
read, write} attribute (6 in total). However, the standard says
access is applicable iff read and write values are the same.
Therefore, we really have just four combinations of attributes:
bandwidth-read, bandwidth-write, latency-read, latency-write.
This is the combination that kernel reports anyway.
Then, under /sys/system/devices/node/nodeX/acccessN/initiators we
find values for those 4 attributes and also symlinks named
"nodeN" which then represent initiators to nodeX. For instance:
/sys/system/node/node1/access1/initiators/node0 -> ../../node0
/sys/system/node/node1/access1/initiators/read_bandwidth
/sys/system/node/node1/access1/initiators/read_latency
/sys/system/node/node1/access1/initiators/write_bandwidth
/sys/system/node/node1/access1/initiators/write_latency
This means that node0 is initiator and node1 is target and values
of the interconnect can be read.
In theory, there can be separate links to memory side caches too
(e.g. one link from node X to node Y's main memory, another from
node X to node Y's L1 cache, another one to L2 cache and so on).
But sysfs does not express this relationship just yet.
The "accessN" means either "access0" or "access1". The difference
is that while the former expresses the best interconnect between
two nodes including CPUS and I/O devices (such as GPUs and NICs),
the latter includes only CPUs and thus is what we need.
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1786309
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2021-05-17 11:36:34 +00:00
|
|
|
GArray *interconnects; /* virNumaInterconnect */
|
2019-11-29 09:55:59 +00:00
|
|
|
};
|
|
|
|
|
2013-10-18 12:13:21 +00:00
|
|
|
struct _virCapsHostSecModelLabel {
|
|
|
|
char *type;
|
|
|
|
char *label;
|
|
|
|
};
|
|
|
|
|
2009-03-03 09:44:41 +00:00
|
|
|
struct _virCapsHostSecModel {
|
|
|
|
char *model;
|
|
|
|
char *doi;
|
2013-10-18 12:13:21 +00:00
|
|
|
size_t nlabels;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostSecModelLabel *labels;
|
2009-03-03 09:44:41 +00:00
|
|
|
};
|
|
|
|
|
2017-03-30 13:01:27 +00:00
|
|
|
struct _virCapsHostCacheBank {
|
|
|
|
unsigned int id;
|
|
|
|
unsigned int level; /* 1=L1, 2=L2, 3=L3, etc. */
|
|
|
|
unsigned long long size; /* B */
|
|
|
|
virCacheType type; /* Data, Instruction or Unified */
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *cpus; /* All CPUs that share this bank */
|
2017-05-17 09:08:33 +00:00
|
|
|
size_t ncontrols;
|
2021-03-11 07:16:13 +00:00
|
|
|
virResctrlInfoPerCache **controls;
|
2017-03-30 13:01:27 +00:00
|
|
|
};
|
|
|
|
|
2022-10-11 09:02:47 +00:00
|
|
|
void virCapsHostCacheBankFree(virCapsHostCacheBank *ptr);
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCapsHostCacheBank, virCapsHostCacheBankFree);
|
|
|
|
|
2018-09-20 10:10:48 +00:00
|
|
|
struct _virCapsHostCache {
|
|
|
|
size_t nbanks;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostCacheBank **banks;
|
2018-09-20 10:10:50 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virResctrlInfoMon *monitor;
|
2018-09-20 10:10:48 +00:00
|
|
|
};
|
|
|
|
|
2018-07-30 03:12:41 +00:00
|
|
|
struct _virCapsHostMemBWNode {
|
|
|
|
unsigned int id;
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *cpus; /* All CPUs that belong to this node */
|
2018-07-30 03:12:41 +00:00
|
|
|
virResctrlInfoMemBWPerNode control;
|
|
|
|
};
|
|
|
|
|
2018-09-20 10:10:49 +00:00
|
|
|
struct _virCapsHostMemBW {
|
|
|
|
size_t nnodes;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostMemBWNode **nodes;
|
2018-09-20 10:10:50 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virResctrlInfoMon *monitor;
|
2018-09-20 10:10:49 +00:00
|
|
|
};
|
|
|
|
|
2008-02-27 04:35:08 +00:00
|
|
|
struct _virCapsHost {
|
2012-12-10 22:28:09 +00:00
|
|
|
virArch arch;
|
2010-08-17 21:41:51 +00:00
|
|
|
size_t nfeatures;
|
|
|
|
size_t nfeatures_max;
|
2008-02-27 04:35:08 +00:00
|
|
|
char **features;
|
2011-11-22 03:31:22 +00:00
|
|
|
unsigned int powerMgmt; /* Bitmask of the PM capabilities.
|
|
|
|
* See enum virHostPMCapability.
|
|
|
|
*/
|
2014-07-14 12:56:13 +00:00
|
|
|
bool offlineMigrate;
|
|
|
|
bool liveMigrate;
|
2010-08-17 21:41:51 +00:00
|
|
|
size_t nmigrateTrans;
|
|
|
|
size_t nmigrateTrans_max;
|
2008-02-27 04:35:08 +00:00
|
|
|
char **migrateTrans;
|
2019-11-29 09:55:59 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostNUMA *numa;
|
2012-08-15 22:10:35 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virResctrlInfo *resctrl;
|
2017-11-20 12:43:30 +00:00
|
|
|
|
2018-09-20 10:10:48 +00:00
|
|
|
virCapsHostCache cache;
|
2017-03-30 13:01:27 +00:00
|
|
|
|
2018-09-20 10:10:49 +00:00
|
|
|
virCapsHostMemBW memBW;
|
2018-07-30 03:12:41 +00:00
|
|
|
|
2012-08-15 22:10:35 +00:00
|
|
|
size_t nsecModels;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostSecModel *secModels;
|
2012-08-15 22:10:35 +00:00
|
|
|
|
2016-02-03 21:40:33 +00:00
|
|
|
char *netprefix;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCPUDef *cpu;
|
2014-06-06 16:12:51 +00:00
|
|
|
int nPagesSize; /* size of pagesSize array */
|
|
|
|
unsigned int *pagesSize; /* page sizes support on the system */
|
2010-05-25 14:33:51 +00:00
|
|
|
unsigned char host_uuid[VIR_UUID_BUFLEN];
|
2018-06-01 08:15:59 +00:00
|
|
|
bool iommu;
|
2008-02-27 04:35:08 +00:00
|
|
|
};
|
|
|
|
|
2019-01-10 12:19:35 +00:00
|
|
|
struct _virCapsStoragePool {
|
|
|
|
int type;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-02-27 04:35:08 +00:00
|
|
|
struct _virCaps {
|
2013-02-01 12:26:18 +00:00
|
|
|
virObject parent;
|
|
|
|
|
2008-02-27 04:35:08 +00:00
|
|
|
virCapsHost host;
|
2010-08-17 21:41:51 +00:00
|
|
|
size_t nguests;
|
|
|
|
size_t nguests_max;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuest **guests;
|
2019-01-10 12:19:35 +00:00
|
|
|
|
|
|
|
size_t npools;
|
|
|
|
size_t npools_max;
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsStoragePool **pools;
|
2008-02-27 04:35:08 +00:00
|
|
|
};
|
|
|
|
|
2019-10-04 16:14:10 +00:00
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCaps, virObjectUnref);
|
|
|
|
|
|
|
|
|
2015-04-17 16:38:55 +00:00
|
|
|
struct _virCapsDomainData {
|
|
|
|
int ostype;
|
|
|
|
int arch;
|
2015-09-17 08:46:55 +00:00
|
|
|
int domaintype; /* virDomainVirtType */
|
2015-04-17 16:38:55 +00:00
|
|
|
const char *emulator;
|
|
|
|
const char *machinetype;
|
|
|
|
};
|
|
|
|
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCaps *
|
2012-12-10 22:28:09 +00:00
|
|
|
virCapabilitiesNew(virArch hostarch,
|
2014-07-14 12:56:13 +00:00
|
|
|
bool offlineMigrate,
|
|
|
|
bool liveMigrate);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2016-05-10 11:37:32 +00:00
|
|
|
void
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesHostNUMAUnref(virCapsHostNUMA *caps);
|
2019-11-29 09:55:59 +00:00
|
|
|
void
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesHostNUMARef(virCapsHostNUMA *caps);
|
2019-11-29 09:55:59 +00:00
|
|
|
|
|
|
|
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virCapsHostNUMA, virCapabilitiesHostNUMAUnref);
|
2009-06-29 10:41:56 +00:00
|
|
|
|
2016-05-10 11:37:32 +00:00
|
|
|
int
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesAddHostFeature(virCaps *caps,
|
2008-02-27 04:35:08 +00:00
|
|
|
const char *name);
|
|
|
|
|
2016-05-10 11:37:32 +00:00
|
|
|
int
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesAddHostMigrateTransport(virCaps *caps,
|
2008-02-27 04:35:08 +00:00
|
|
|
const char *name);
|
|
|
|
|
2016-05-10 11:37:32 +00:00
|
|
|
int
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesSetNetPrefix(virCaps *caps,
|
2016-02-03 21:40:33 +00:00
|
|
|
const char *prefix);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2019-11-29 09:55:59 +00:00
|
|
|
void
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesHostNUMAAddCell(virCapsHostNUMA *caps,
|
2008-02-27 04:35:08 +00:00
|
|
|
int num,
|
2013-03-07 16:03:36 +00:00
|
|
|
unsigned long long mem,
|
2014-06-03 13:18:27 +00:00
|
|
|
int ncpus,
|
2021-04-29 16:58:40 +00:00
|
|
|
virCapsHostNUMACellCPU **cpus,
|
2021-05-03 10:06:42 +00:00
|
|
|
int ndistances,
|
2021-05-03 09:04:45 +00:00
|
|
|
virNumaDistance **distances,
|
2014-06-06 16:12:51 +00:00
|
|
|
int npageinfo,
|
2021-04-29 16:58:43 +00:00
|
|
|
virCapsHostNUMACellPageInfo **pageinfo,
|
|
|
|
GArray **caches);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuestMachine **
|
2009-07-23 17:31:34 +00:00
|
|
|
virCapabilitiesAllocMachines(const char *const *names,
|
2023-03-17 13:12:11 +00:00
|
|
|
int *nnames);
|
2009-07-23 17:31:34 +00:00
|
|
|
|
2017-03-15 12:01:13 +00:00
|
|
|
void
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesFreeGuest(virCapsGuest *guest);
|
2017-03-15 12:01:13 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuest *
|
|
|
|
virCapabilitiesAddGuest(virCaps *caps,
|
2015-04-17 22:09:16 +00:00
|
|
|
int ostype,
|
2012-12-10 22:28:09 +00:00
|
|
|
virArch arch,
|
2008-02-27 04:35:08 +00:00
|
|
|
const char *emulator,
|
|
|
|
const char *loader,
|
|
|
|
int nmachines,
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuestMachine **machines);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuestDomain *
|
|
|
|
virCapabilitiesAddGuestDomain(virCapsGuest *guest,
|
2015-04-17 22:38:10 +00:00
|
|
|
int hvtype,
|
2008-02-27 04:35:08 +00:00
|
|
|
const char *emulator,
|
|
|
|
const char *loader,
|
|
|
|
int nmachines,
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsGuestMachine **machines);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2019-11-12 12:57:23 +00:00
|
|
|
void
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesAddGuestFeature(virCapsGuest *guest,
|
2019-11-12 12:57:23 +00:00
|
|
|
virCapsGuestFeatureType feature);
|
|
|
|
void
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesAddGuestFeatureWithToggle(virCapsGuest *guest,
|
2019-11-12 12:57:23 +00:00
|
|
|
virCapsGuestFeatureType feature,
|
|
|
|
bool defaultOn,
|
|
|
|
bool toggle);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2019-01-10 12:19:35 +00:00
|
|
|
int
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesAddStoragePool(virCaps *caps,
|
2019-01-10 12:19:35 +00:00
|
|
|
int poolType);
|
|
|
|
|
2016-05-10 11:37:32 +00:00
|
|
|
int
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesHostSecModelAddBaseLabel(virCapsHostSecModel *secmodel,
|
2013-10-18 12:13:21 +00:00
|
|
|
const char *type,
|
|
|
|
const char *label);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsDomainData *
|
|
|
|
virCapabilitiesDomainDataLookup(virCaps *caps,
|
2015-04-17 16:38:55 +00:00
|
|
|
int ostype,
|
|
|
|
virArch arch,
|
|
|
|
int domaintype,
|
|
|
|
const char *emulator,
|
|
|
|
const char *machinetype);
|
|
|
|
|
2019-11-26 16:09:33 +00:00
|
|
|
bool
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesDomainSupported(virCaps *caps,
|
2019-11-26 16:09:33 +00:00
|
|
|
int ostype,
|
|
|
|
virArch arch,
|
|
|
|
int domaintype);
|
|
|
|
|
|
|
|
|
2013-01-22 17:42:08 +00:00
|
|
|
void
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesClearHostNUMACellCPUTopology(virCapsHostNUMACellCPU *cpu,
|
2013-01-22 17:42:08 +00:00
|
|
|
size_t ncpus);
|
2009-01-30 17:12:28 +00:00
|
|
|
|
2016-05-10 11:37:32 +00:00
|
|
|
char *
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapabilitiesFormatXML(virCaps *caps);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virBitmap *virCapabilitiesHostNUMAGetCpus(virCapsHostNUMA *caps,
|
|
|
|
virBitmap *nodemask);
|
2008-02-27 04:35:08 +00:00
|
|
|
|
2021-08-19 13:21:41 +00:00
|
|
|
int virCapabilitiesHostNUMAGetMaxNode(virCapsHostNUMA *caps);
|
|
|
|
|
2017-03-07 09:40:15 +00:00
|
|
|
int virCapabilitiesGetNodeInfo(virNodeInfoPtr nodeinfo);
|
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virCapabilitiesInitPages(virCaps *caps);
|
2017-03-11 15:32:13 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
virCapsHostNUMA *virCapabilitiesHostNUMANew(void);
|
|
|
|
virCapsHostNUMA *virCapabilitiesHostNUMANewHost(void);
|
2017-03-07 09:40:15 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
bool virCapsHostCacheBankEquals(virCapsHostCacheBank *a,
|
|
|
|
virCapsHostCacheBank *b);
|
|
|
|
void virCapsHostCacheBankFree(virCapsHostCacheBank *ptr);
|
2017-03-30 13:01:27 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
int virCapabilitiesInitCaches(virCaps *caps);
|
2017-03-30 13:01:27 +00:00
|
|
|
|
2021-03-11 07:16:13 +00:00
|
|
|
void virCapabilitiesHostInitIOMMU(virCaps *caps);
|