]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove extra messages for vhost-scsi hotplug
authorEric Farman <farman@linux.vnet.ibm.com>
Wed, 26 Apr 2017 21:10:01 +0000 (17:10 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 22:02:38 +0000 (18:02 -0400)
As with virtio-scsi, the "internal error" messages after
preparing a vhost-scsi hostdev overwrites more meaningful
error messages deeper in the callchain.  Remove it too.

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
(cherry picked from commit 6ff38cee609ea30288b2fcd6bbdc37ae0d528c36)

src/qemu/qemu_hotplug.c

index 6e757d7d47daf6d9901c7891b54019c9901d3118..f133d04a8c9a9ce26d5edc4a8fbd9dc946476b68 100644 (file)
@@ -2578,13 +2578,8 @@ qemuDomainAttachSCSIVHostDevice(virQEMUDriverPtr driver,
         return -1;
     }
 
-    if (qemuHostdevPrepareSCSIVHostDevices(driver, vm->def->name, &hostdev, 1) < 0) {
-        virDomainHostdevSubsysSCSIVHostPtr hostsrc = &hostdev->source.subsys.u.scsi_host;
-        virReportError(VIR_ERR_INTERNAL_ERROR,
-                       _("Unable to prepare scsi_host hostdev: %s"),
-                       hostsrc->wwpn);
+    if (qemuHostdevPrepareSCSIVHostDevices(driver, vm->def->name, &hostdev, 1) < 0)
         return -1;
-    }
 
     if (qemuDomainNamespaceSetupHostdev(driver, vm, hostdev) < 0)
         goto cleanup;