]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vbox: VIR_WARN if we don't support the API version
authorCole Robinson <crobinso@redhat.com>
Fri, 22 Apr 2016 21:53:08 +0000 (17:53 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 4 May 2016 22:46:04 +0000 (18:46 -0400)
We presently don't give any indication if the VirtualBox version
isn't in our support whitelist.

(cherry picked from commit 18644491de68f9a654061f2748486f1c69900d17)

src/vbox/vbox_common.c

index c305eb597c320e02e9e206041b1dbb26d8b4a624..13240fc568a138a3206fb2012471d1b36081a970 100644 (file)
@@ -7858,7 +7858,11 @@ virHypervisorDriverPtr vboxGetHypervisorDriver(uint32_t uVersion)
     /* Install gVBoxAPI according to the vbox API version. */
     int result = 0;
     installUniformedAPI(gVBoxAPI, result);
-    if (result < 0) return NULL;
+    if (result < 0) {
+        VIR_WARN("Libvirt doesn't support VirtualBox API version %u",
+                 uVersion);
+        return NULL;
+    }
     updateDriver();
     return &vboxCommonDriver;
 }