From: Cole Robinson Date: Fri, 22 Apr 2016 21:53:08 +0000 (-0400) Subject: vbox: VIR_WARN if we don't support the API version X-Git-Tag: v1.3.3.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b68f421ac268b033331ee65a0892b771ad43d6e6;p=thirdparty%2Flibvirt.git vbox: VIR_WARN if we don't support the API version We presently don't give any indication if the VirtualBox version isn't in our support whitelist. (cherry picked from commit 18644491de68f9a654061f2748486f1c69900d17) --- diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index c305eb597c..13240fc568 100644 --- a/src/vbox/vbox_common.c +++ b/src/vbox/vbox_common.c @@ -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; }