mirror of https://gitee.com/openkylin/libvirt.git
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);
|
||||
}
|
||||
|
||||
static int
|
||||
bhyveNodeGetInfo(virConnectPtr conn,
|
||||
virNodeInfoPtr nodeinfo)
|
||||
{
|
||||
if (virNodeGetInfoEnsureACL(conn) < 0)
|
||||
return -1;
|
||||
|
||||
return nodeGetInfo(nodeinfo);
|
||||
}
|
||||
|
||||
static int
|
||||
bhyveStateCleanup(void)
|
||||
{
|
||||
|
@ -703,6 +713,7 @@ static virDriver bhyveDriver = {
|
|||
.domainIsPersistent = bhyveDomainIsPersistent, /* 1.2.2 */
|
||||
.nodeGetCPUStats = bhyveNodeGetCPUStats, /* 1.2.2 */
|
||||
.nodeGetMemoryStats = bhyveNodeGetMemoryStats, /* 1.2.2 */
|
||||
.nodeGetInfo = bhyveNodeGetInfo, /* 1.2.3 */
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue