mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
bhyve: drop emulator binary value check
Currently, requesting domain capabilities fails when the specified emulator binary does not equal to "/usr/sbin/bhyve". As we're not using user-specified emulator anyway, drop this check to avoid showing errors for values like "bhyve" (without absolute path). Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
3068294e77
commit
a58edc602e
@ -1645,14 +1645,8 @@ bhyveConnectGetDomainCapabilities(virConnectPtr conn,
|
|||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (emulatorbin == NULL) {
|
if (emulatorbin == NULL)
|
||||||
emulatorbin = "/usr/sbin/bhyve";
|
emulatorbin = "/usr/sbin/bhyve";
|
||||||
} else if (STRNEQ(emulatorbin, "/usr/sbin/bhyve")) {
|
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
|
||||||
_("unknown emulator binary: %s"),
|
|
||||||
emulatorbin);
|
|
||||||
goto cleanup;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!(caps = virBhyveDomainCapsBuild(conn->privateData, emulatorbin,
|
if (!(caps = virBhyveDomainCapsBuild(conn->privateData, emulatorbin,
|
||||||
machine, arch, virttype)))
|
machine, arch, virttype)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user