From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38517) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVji0-0003Oz-Sj for qemu-devel@nongnu.org; Wed, 30 Nov 2011 07:56:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RVjhr-0005kI-EU for qemu-devel@nongnu.org; Wed, 30 Nov 2011 07:56:20 -0500 Received: from cantor2.suse.de ([195.135.220.15]:45595 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RVjhr-0005k7-8R for qemu-devel@nongnu.org; Wed, 30 Nov 2011 07:56:11 -0500 Message-ID: <4ED627BA.9070606@suse.de> Date: Wed, 30 Nov 2011 13:55:22 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <20111130121142.GA14986@arachsys.com> <20111130122030.GW28621@redhat.com> In-Reply-To: <20111130122030.GW28621@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Using AHCI drives in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Webb Cc: qemu-devel@nongnu.org Am 30.11.2011 13:20, schrieb Daniel P. Berrange: > On Wed, Nov 30, 2011 at 12:11:45PM +0000, Chris Webb wrote: >> Possible a stupid question, but noting the new AHCI support in qemu, h= ow do >> I specify an AHCI drive to attach to a qemu VM? >> >> I can create IDE, SCSI and virtio drives with >> >> -drive if=3Dide,bus=3DM,unit=3DN,... >> -drive if=3Dscsi,bus=3DM,unit=3DN,... >> -drive if=3Dvirtio,index=3DN,... >> >> but when I attempted to test AHCI, a variety of plausible things I tri= ed >> like >> >> -drive if=3Dahci,... >> -drive if=3Dide-ahci,... >> -drive if=3Dide,bus=3Dahci.0,... >> >> all failed. There's no mention of AHCI in qemu-options.hx or qemu-doc.= texi, >> nor anything in the git commit log history about using this new drive = type. >=20 > Using -drive with an if=3DXXX which is anything other than 'none' is t= he > deprecated / legacy syntax. The way libvirt does AHCI is to use the mor= e > verbose/modern syntax: >=20 > -device ahci,id=3Dahci0 > -drive if=3Dnone,file=3D/var/lib/libvirt/images/test/disk0.raw,for= mat=3Draw,id=3Ddrive-sata0-0-0 > -device ide-drive,bus=3Dahci0.0,drive=3Ddrive-sata0-0-0,id=3Dsata0-= 0-0 >=20 > The first -device there creates the AHCI controller. The -drive specifi= es > the disk backing store that will be used. The last -device there connec= ts > the drive to the ACHI controller as an ide-drive. Also note that -device ide-cd on ahci bus is known broken, and ahci is not yet migratable (working on it). Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg