]> xenbits.xensource.com Git - 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>
Sat, 23 Apr 2016 17:40:56 +0000 (13:40 -0400)
We presently don't give any indication if the VirtualBox version
isn't in our support whitelist.

src/vbox/vbox_common.c

index 0cead1060980066975aa7aad0577f729f3b80f20..82286a8a961c53538084cf22eb5db77de26589fb 100644 (file)
@@ -7856,7 +7856,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;
 }