File 1aed9d84-qemu-make-error-messages-device-specific.patch of Package libvirt.16761

commit 1aed9d84f94d2d31a67bc7ee1fca634e4e8b3302
Author: Boris Fiuczynski <fiuczy@linux.ibm.com>
Date:   Tue Aug 27 16:19:21 2019 +0200

    qemu: make error messages device specific
    
    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>

Index: libvirt-5.1.0/src/qemu/qemu_domain.c
===================================================================
--- libvirt-5.1.0.orig/src/qemu/qemu_domain.c
+++ libvirt-5.1.0/src/qemu/qemu_domain.c
@@ -4822,16 +4822,16 @@ qemuDomainDeviceDefValidateHostdev(const
         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;
openSUSE Build Service is sponsored by