|
Pablo Greco |
40546a |
From a26ad1b57617abc4de8a0d13716b898d311ee01e Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <a26ad1b57617abc4de8a0d13716b898d311ee01e@dist-git>
|
|
Pablo Greco |
40546a |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Date: Thu, 27 Jun 2019 15:18:15 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] bhyve: Move autostarting of domains into bhyveStateInitialize
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
The stateAutoStart callback will go away shortly. Therefore, move
|
|
Pablo Greco |
40546a |
the autostart call into state initialize callback.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit 31c3c35c940010a793fea8351751bb04fab1a6d4)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
https://bugzilla.redhat.com/show_bug.cgi?id=1685151
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <1a93e2bef531c11190c652fcfb73b568ee73e487.1561641375.git.mprivozn@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/bhyve/bhyve_driver.c | 12 ++----------
|
|
Pablo Greco |
40546a |
1 file changed, 2 insertions(+), 10 deletions(-)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c
|
|
Pablo Greco |
40546a |
index 9284b51783..ec016ecc0c 100644
|
|
Pablo Greco |
40546a |
--- a/src/bhyve/bhyve_driver.c
|
|
Pablo Greco |
40546a |
+++ b/src/bhyve/bhyve_driver.c
|
|
Pablo Greco |
40546a |
@@ -1270,6 +1270,8 @@ bhyveStateInitialize(bool privileged,
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
virBhyveProcessReconnectAll(bhyve_driver);
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
+ bhyveAutostartDomains(bhyve_driver);
|
|
Pablo Greco |
40546a |
+
|
|
Pablo Greco |
40546a |
return 0;
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
cleanup:
|
|
Pablo Greco |
40546a |
@@ -1297,15 +1299,6 @@ bhyveDriverGetGrubCaps(virConnectPtr conn)
|
|
Pablo Greco |
40546a |
return 0;
|
|
Pablo Greco |
40546a |
}
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
-static void
|
|
Pablo Greco |
40546a |
-bhyveStateAutoStart(void)
|
|
Pablo Greco |
40546a |
-{
|
|
Pablo Greco |
40546a |
- if (!bhyve_driver)
|
|
Pablo Greco |
40546a |
- return;
|
|
Pablo Greco |
40546a |
-
|
|
Pablo Greco |
40546a |
- bhyveAutostartDomains(bhyve_driver);
|
|
Pablo Greco |
40546a |
-}
|
|
Pablo Greco |
40546a |
-
|
|
Pablo Greco |
40546a |
static int
|
|
Pablo Greco |
40546a |
bhyveConnectGetMaxVcpus(virConnectPtr conn,
|
|
Pablo Greco |
40546a |
const char *type)
|
|
Pablo Greco |
40546a |
@@ -1713,7 +1706,6 @@ static virConnectDriver bhyveConnectDriver = {
|
|
Pablo Greco |
40546a |
static virStateDriver bhyveStateDriver = {
|
|
Pablo Greco |
40546a |
.name = "bhyve",
|
|
Pablo Greco |
40546a |
.stateInitialize = bhyveStateInitialize,
|
|
Pablo Greco |
40546a |
- .stateAutoStart = bhyveStateAutoStart,
|
|
Pablo Greco |
40546a |
.stateCleanup = bhyveStateCleanup,
|
|
Pablo Greco |
40546a |
};
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|