mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-04-01 20:05:19 +00:00
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)
This commit is contained in:
parent
7b25be9df4
commit
b68f421ac2
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user