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:
Roman Bogorodskiy 2021-02-04 19:29:44 +04:00
parent 3068294e77
commit a58edc602e

View File

@ -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)))