[PATCH] bhyve: add 'root' parameter to driver initializer

Daniel P. Berrangé posted 1 patch 4 years, 3 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20200127134551.1326447-1-berrange@redhat.com
src/bhyve/bhyve_driver.c | 7 +++++++
1 file changed, 7 insertions(+)
[PATCH] bhyve: add 'root' parameter to driver initializer
Posted by Daniel P. Berrangé 4 years, 3 months ago
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---

Pushed as a FreeBSD build fix

 src/bhyve/bhyve_driver.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c
index 5b8fba7467..713301399e 100644
--- a/src/bhyve/bhyve_driver.c
+++ b/src/bhyve/bhyve_driver.c
@@ -1175,11 +1175,18 @@ bhyveStateCleanup(void)
 
 static int
 bhyveStateInitialize(bool privileged,
+                     const char *root,
                      virStateInhibitCallback callback G_GNUC_UNUSED,
                      void *opaque G_GNUC_UNUSED)
 {
     bool autostart = true;
 
+    if (root != NULL) {
+        virReportError(VIR_ERR_INVALID_ARG, "%s",
+                       _("Driver does not support embedded mode"));
+        return -1;
+    }
+
     if (!privileged) {
         VIR_INFO("Not running privileged, disabling driver");
         return VIR_DRV_STATE_INIT_SKIPPED;
-- 
2.24.1