From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:36630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVjV7-00085M-8v for qemu-devel@nongnu.org; Wed, 30 Nov 2011 07:43:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVjV5-00039j-Bu for qemu-devel@nongnu.org; Wed, 30 Nov 2011 07:43:01 -0500 Received: from alpha.arachsys.com ([91.203.57.7]:41530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVjV5-00039T-41 for qemu-devel@nongnu.org; Wed, 30 Nov 2011 07:42:59 -0500 Date: Wed, 30 Nov 2011 12:42:56 +0000 From: Chris Webb Message-ID: <20111130124256.GB14986@arachsys.com> References: <20111130121142.GA14986@arachsys.com> <20111130122030.GW28621@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111130122030.GW28621@redhat.com> Subject: Re: [Qemu-devel] Using AHCI drives in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org Thanks for the swift reply! "Daniel P. Berrange" writes: > Using -drive with an if=XXX which is anything other than 'none' is the > deprecated / legacy syntax. The way libvirt does AHCI is to use the more > verbose/modern syntax: > > -device ahci,id=ahci0 > -drive if=none,file=/var/lib/libvirt/images/test/disk0.raw,format=raw,id=drive-sata0-0-0 > -device ide-drive,bus=ahci0.0,drive=drive-sata0-0-0,id=sata0-0-0 Gosh, this is incredibly verbose for normal command line use. Whilst I can see it's nice to have fine control over the detail (and bus/device ids) when you need it, having to write out a command line of that length just to attach a drive is a real pity. I could cook up a patch to do something sane with -drive if=ahci as a more manageable command-line alternative, but is there any chance of this being accepted if that you're describing the compact syntax as deprecated? Cheers, Chris.