提交 f4829df9 编写于 作者: E Erik Skultety

qemu: Provide a much clearer message on device hot-plug

Adjust the current message to make it clear, that it is the hotplug
operation that is unsupported with the given host device type.

https://bugzilla.redhat.com/show_bug.cgi?id=1450072Signed-off-by: NErik Skultety <eskultet@redhat.com>
上级 300c7c70
...@@ -2674,7 +2674,7 @@ qemuDomainAttachHostDevice(virConnectPtr conn, ...@@ -2674,7 +2674,7 @@ qemuDomainAttachHostDevice(virConnectPtr conn,
{ {
if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS) { if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("hostdev mode '%s' not supported"), _("hotplug is not supported for hostdev mode '%s'"),
virDomainHostdevModeTypeToString(hostdev->mode)); virDomainHostdevModeTypeToString(hostdev->mode));
return -1; return -1;
} }
...@@ -2705,7 +2705,7 @@ qemuDomainAttachHostDevice(virConnectPtr conn, ...@@ -2705,7 +2705,7 @@ qemuDomainAttachHostDevice(virConnectPtr conn,
default: default:
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("hostdev subsys type '%s' not supported"), _("hotplug is not supported for hostdev subsys type '%s'"),
virDomainHostdevSubsysTypeToString(hostdev->source.subsys.type)); virDomainHostdevSubsysTypeToString(hostdev->source.subsys.type));
goto error; goto error;
} }
...@@ -4820,7 +4820,7 @@ qemuDomainDetachThisHostDevice(virQEMUDriverPtr driver, ...@@ -4820,7 +4820,7 @@ qemuDomainDetachThisHostDevice(virQEMUDriverPtr driver,
break; break;
default: default:
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("hostdev subsys type '%s' not supported"), _("hot unplug is not supported for hostdev subsys type '%s'"),
virDomainHostdevSubsysTypeToString(detach->source.subsys.type)); virDomainHostdevSubsysTypeToString(detach->source.subsys.type));
return -1; return -1;
} }
...@@ -4852,7 +4852,7 @@ int qemuDomainDetachHostDevice(virQEMUDriverPtr driver, ...@@ -4852,7 +4852,7 @@ int qemuDomainDetachHostDevice(virQEMUDriverPtr driver,
if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS) { if (hostdev->mode != VIR_DOMAIN_HOSTDEV_MODE_SUBSYS) {
virReportError(VIR_ERR_CONFIG_UNSUPPORTED, virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
_("hostdev mode '%s' not supported"), _("hot unplug is not supported for hostdev mode '%s'"),
virDomainHostdevModeTypeToString(hostdev->mode)); virDomainHostdevModeTypeToString(hostdev->mode));
return -1; return -1;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册