qemu: Do not ignore address for USB disks

(cherry picked from commit 8f708761c0)
This commit is contained in:
Vladislav Bogdanov 2012-10-26 09:09:21 +00:00 committed by Cole Robinson
parent 6ca5649625
commit ff05b2c4f9
2 changed files with 4 additions and 0 deletions

View File

@ -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....]

View 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,