mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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.
This commit is contained in:
parent
fa90464faa
commit
18644491de
@ -7856,7 +7856,11 @@ virHypervisorDriverPtr vboxGetHypervisorDriver(uint32_t uVersion)
|
|||||||
/* Install gVBoxAPI according to the vbox API version. */
|
/* Install gVBoxAPI according to the vbox API version. */
|
||||||
int result = 0;
|
int result = 0;
|
||||||
installUniformedAPI(gVBoxAPI, result);
|
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();
|
updateDriver();
|
||||||
return &vboxCommonDriver;
|
return &vboxCommonDriver;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user