Received: from eggs.gnu.org ([2001:4830:134:3::10]:53328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfAWg-0006YP-ED for qemu-devel@nongnu.org; Wed, 31 Aug 2016 14:46:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfAWV-0003Pr-8I for qemu-devel@nongnu.org; Wed, 31 Aug 2016 14:46:13 -0400 Received: from indium.canonical.com ([91.189.90.7]:33462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfAWV-0003Ph-2Z for qemu-devel@nongnu.org; Wed, 31 Aug 2016 14:46:07 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bfAWU-0001Mg-FH for ; Wed, 31 Aug 2016 18:46:06 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 6FB6A2E80C0 for ; Wed, 31 Aug 2016 18:46:06 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 31 Aug 2016 18:36:43 -0000 From: John Snow <1219234@bugs.launchpad.net> Reply-To: Bug 1219234 <1219234@bugs.launchpad.net> Sender: bounces@canonical.com References: <20130831150404.10743.73717.malonedeb@gac.canonical.com> Message-Id: <20160831183645.12530.90112.launchpad@chaenomeles.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1219234] Re: -device ide-hd will assign bus with with no free units List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Changed in: qemu Assignee: (unassigned) =3D> John Snow (jnsnow) -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1219234 Title: -device ide-hd will assign bus with with no free units Status in QEMU: New Bug description: Originally filed here: https://bugzilla.redhat.com/show_bug.cgi?id=3D1000118 ./x86_64-softmmu/qemu-system-x86_64 -device ahci -drive id=3Daa,file=3D/t= mp/foo,if=3Dnone -drive id=3Dbb,file=3D/tmp/foo,if=3Dnone -device ide-hd,dr= ive=3Daa -device ide-hd,drive=3Dbb qemu-system-x86_64: -device ide-hd,drive=3Dbb: Can't create IDE unit 1, b= us supports only 1 units qemu-system-x86_64: -device ide-hd,drive=3Dbb: Device initialization fail= ed. qemu-system-x86_64: -device ide-hd,drive=3Dbb: Device 'ide-hd' could not = be initialized If a bus isn't specified for -device ide-hd, it just uses the first bus it finds, not taking into account if that bus was already assigned for another device. So users are forced to do -device ide-hd,bus=3Dide.0 -device ide-hd,bus=3Dide.1, etc. This isn't specific to -device ahci, but it's worse there since there isn't any -drive if=3DIDE or -hda convenience option, which both seem to get the logic correct. I know -device is the 'build it yourself' approach so I understand if this is WONTFIX. This is affects qemu.git as of today (8-31-2013) To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1219234/+subscriptions