]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Do not ignore address for USB disks
authorVladislav Bogdanov <bubble@hoster-ok.com>
Fri, 26 Oct 2012 09:09:21 +0000 (09:09 +0000)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 22:48:11 +0000 (17:48 -0500)
(cherry picked from commit 8f708761c0d0e4eaf36bcb274d4f49fc3e0c3874)

AUTHORS
src/qemu/qemu_command.c

diff --git a/AUTHORS b/AUTHORS
index 6390df809c1a526bcda4940c9f45d8a84044579b..c41615a1a1e5816dbe6cc092e22f848ae62e8c37 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -243,6 +243,7 @@ Patches have also been contributed by:
   Wido den Hollander   <wido@widodh.nl>
   Gene Czarcinski      <gene@czarc.net>
   Stefan Hajnoczi      <stefanha@redhat.com>
+  Vladislav Bogdanov   <bubble@hoster-ok.com>
 
   [....send patches to get your name here....]
 
index 1cdc6d27b6b7ff2da6157e6b4963c5083f9582ae..b61fca38b276ad3b59efe7073b7c98c01d67329c 100644 (file)
@@ -2398,6 +2398,9 @@ qemuBuildDriveDevStr(virDomainDefPtr def,
         break;
     case VIR_DOMAIN_DISK_BUS_USB:
         virBufferAddLit(&opt, "usb-storage");
+
+        if (qemuBuildDeviceAddressStr(&opt, &disk->info, qemuCaps) < 0)
+            goto error;
         break;
     default:
         qemuReportError(VIR_ERR_INTERNAL_ERROR,