提交 ed9db36b 编写于 作者: A Andrea Bolognani

qemu: Report error on failure to set isolation group

This is more user-friendly because the error will be
displayed directly instead of being buried in the log.
Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
上级 941ec9b6
......@@ -1012,10 +1012,11 @@ qemuDomainFillDeviceIsolationGroup(virDomainDefPtr def,
tmp = virPCIDeviceAddressGetIOMMUGroupNum(hostAddr);
if (tmp < 0) {
VIR_WARN("Can't look up isolation group for host device "
"%04x:%02x:%02x.%x",
hostAddr->domain, hostAddr->bus,
hostAddr->slot, hostAddr->function);
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Can't look up isolation group for host device "
"%04x:%02x:%02x.%x"),
hostAddr->domain, hostAddr->bus,
hostAddr->slot, hostAddr->function);
goto cleanup;
}
......@@ -1056,9 +1057,11 @@ qemuDomainFillDeviceIsolationGroup(virDomainDefPtr def,
tmp = qemuDomainFindUnusedIsolationGroup(def);
if (tmp == 0) {
VIR_WARN("Can't obtain usable isolation group for interface "
"configured to use hostdev-backed network '%s'",
iface->data.network.name);
virReportError(VIR_ERR_INTERNAL_ERROR,
_("Can't obtain usable isolation group for "
"interface configured to use hostdev-backed "
"network '%s'"),
iface->data.network.name);
goto cleanup;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册