From ff05b2c4f9cf7ef875ee1ee33cc3e1b030739885 Mon Sep 17 00:00:00 2001 From: Vladislav Bogdanov Date: Fri, 26 Oct 2012 09:09:21 +0000 Subject: [PATCH] qemu: Do not ignore address for USB disks (cherry picked from commit 8f708761c0d0e4eaf36bcb274d4f49fc3e0c3874) --- AUTHORS | 1 + src/qemu/qemu_command.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index 6390df809c..c41615a1a1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -243,6 +243,7 @@ Patches have also been contributed by: Wido den Hollander Gene Czarcinski Stefan Hajnoczi + Vladislav Bogdanov [....send patches to get your name here....] diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 1cdc6d27b6..b61fca38b2 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -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, -- GitLab