]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve: add 'root' parameter to driver initializer
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 27 Jan 2020 12:41:48 +0000 (12:41 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 27 Jan 2020 13:44:56 +0000 (13:44 +0000)
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/bhyve/bhyve_driver.c

index 5b8fba7467a558e7e0efea23236810c108bcba94..713301399e57866d008c202415f1c5d49e9f6143 100644 (file)
@@ -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;