mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-17 15:17:17 +00:00
bhyve: implement nodeGetInfo()
Add bhyveNodeGetInfo() which is a simple wrapper around nodeGetInfo() from src/nodeinfo.c.
This commit is contained in:
parent
2250a2b5d2
commit
41d9246202
@ -600,6 +600,16 @@ bhyveNodeGetMemoryStats(virConnectPtr conn,
|
|||||||
return nodeGetMemoryStats(cellNum, params, nparams, flags);
|
return nodeGetMemoryStats(cellNum, params, nparams, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
bhyveNodeGetInfo(virConnectPtr conn,
|
||||||
|
virNodeInfoPtr nodeinfo)
|
||||||
|
{
|
||||||
|
if (virNodeGetInfoEnsureACL(conn) < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
|
return nodeGetInfo(nodeinfo);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
bhyveStateCleanup(void)
|
bhyveStateCleanup(void)
|
||||||
{
|
{
|
||||||
@ -703,6 +713,7 @@ static virDriver bhyveDriver = {
|
|||||||
.domainIsPersistent = bhyveDomainIsPersistent, /* 1.2.2 */
|
.domainIsPersistent = bhyveDomainIsPersistent, /* 1.2.2 */
|
||||||
.nodeGetCPUStats = bhyveNodeGetCPUStats, /* 1.2.2 */
|
.nodeGetCPUStats = bhyveNodeGetCPUStats, /* 1.2.2 */
|
||||||
.nodeGetMemoryStats = bhyveNodeGetMemoryStats, /* 1.2.2 */
|
.nodeGetMemoryStats = bhyveNodeGetMemoryStats, /* 1.2.2 */
|
||||||
|
.nodeGetInfo = bhyveNodeGetInfo, /* 1.2.3 */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user