]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: make error messages device specific
authorBoris Fiuczynski <fiuczy@linux.ibm.com>
Tue, 27 Aug 2019 14:19:21 +0000 (16:19 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 28 Aug 2019 10:25:16 +0000 (12:25 +0200)
Changing the error messages to report the problem encountered.

Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Bjoern Walk <bwalk@linux.ibm.com>
Signed-off-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c

index ed3a8a4f0724ba526ae90ac469fea955838b6cac..b8260921ceb377ab1580e8a650266fbcedfae2fb 100644 (file)
@@ -5299,16 +5299,16 @@ qemuDomainDeviceDefValidateHostdev(const virDomainHostdevDef *hostdev,
         case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_SCSI_HOST:
             if (hostdev->info->bootIndex) {
                 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                               _("booting from assigned devices is only "
-                                 "supported for PCI, USB and SCSI devices"));
+                               _("booting from assigned devices is not "
+                                 "supported by vhost SCSI devices"));
                 return -1;
             }
             break;
         case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_MDEV:
             if (hostdev->info->bootIndex) {
                 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                               _("booting from assigned devices is only "
-                                 "supported for PCI, USB and SCSI devices"));
+                               _("booting from assigned devices is not "
+                                 "supported by mediated devices"));
                 return -1;
             }
             mdevsrc = &hostdev->source.subsys.u.mdev;