提交 31c3c35c 编写于 作者: M Michal Privoznik

bhyve: Move autostarting of domains into bhyveStateInitialize

The stateAutoStart callback will go away shortly. Therefore, move
the autostart call into state initialize callback.
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 c6266ddb
......@@ -1269,6 +1269,8 @@ bhyveStateInitialize(bool privileged,
virBhyveProcessReconnectAll(bhyve_driver);
bhyveAutostartDomains(bhyve_driver);
return 0;
cleanup:
......@@ -1296,15 +1298,6 @@ bhyveDriverGetGrubCaps(virConnectPtr conn)
return 0;
}
static void
bhyveStateAutoStart(void)
{
if (!bhyve_driver)
return;
bhyveAutostartDomains(bhyve_driver);
}
static int
bhyveConnectGetMaxVcpus(virConnectPtr conn,
const char *type)
......@@ -1712,7 +1705,6 @@ static virConnectDriver bhyveConnectDriver = {
static virStateDriver bhyveStateDriver = {
.name = "bhyve",
.stateInitialize = bhyveStateInitialize,
.stateAutoStart = bhyveStateAutoStart,
.stateCleanup = bhyveStateCleanup,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册