mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 13:35:17 +00:00
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: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
c6266ddb02
commit
31c3c35c94
@ -1269,6 +1269,8 @@ bhyveStateInitialize(bool privileged,
|
|||||||
|
|
||||||
virBhyveProcessReconnectAll(bhyve_driver);
|
virBhyveProcessReconnectAll(bhyve_driver);
|
||||||
|
|
||||||
|
bhyveAutostartDomains(bhyve_driver);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
@ -1296,15 +1298,6 @@ bhyveDriverGetGrubCaps(virConnectPtr conn)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
bhyveStateAutoStart(void)
|
|
||||||
{
|
|
||||||
if (!bhyve_driver)
|
|
||||||
return;
|
|
||||||
|
|
||||||
bhyveAutostartDomains(bhyve_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
bhyveConnectGetMaxVcpus(virConnectPtr conn,
|
bhyveConnectGetMaxVcpus(virConnectPtr conn,
|
||||||
const char *type)
|
const char *type)
|
||||||
@ -1712,7 +1705,6 @@ static virConnectDriver bhyveConnectDriver = {
|
|||||||
static virStateDriver bhyveStateDriver = {
|
static virStateDriver bhyveStateDriver = {
|
||||||
.name = "bhyve",
|
.name = "bhyve",
|
||||||
.stateInitialize = bhyveStateInitialize,
|
.stateInitialize = bhyveStateInitialize,
|
||||||
.stateAutoStart = bhyveStateAutoStart,
|
|
||||||
.stateCleanup = bhyveStateCleanup,
|
.stateCleanup = bhyveStateCleanup,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user