bhyve: implement nodeGetInfo()

Add bhyveNodeGetInfo() which is a simple wrapper around nodeGetInfo()
from src/nodeinfo.c.
This commit is contained in:
Roman Bogorodskiy 2014-03-16 15:10:51 +04:00
parent 2250a2b5d2
commit 41d9246202
1 changed files with 11 additions and 0 deletions

View File

@ -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 */
};