]> 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)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 27 Apr 2017 12:51:53 +0000 (08:51 -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>
src/qemu/qemu_hotplug.c

index f9e8b0ae53ace3489381e29f35ea7f044c9df86d..4ca10863c02e537d4dfe88b274aebab63e1c692b 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;