qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Chris Webb <chris@arachsys.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Using AHCI drives in qemu
Date: Wed, 30 Nov 2011 13:55:22 +0100	[thread overview]
Message-ID: <4ED627BA.9070606@suse.de> (raw)
In-Reply-To: <20111130122030.GW28621@redhat.com>

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, how do
>> I specify an AHCI drive to attach to a qemu VM?
>>
>> I can create IDE, SCSI and virtio drives with
>>
>>   -drive if=ide,bus=M,unit=N,...
>>   -drive if=scsi,bus=M,unit=N,...
>>   -drive if=virtio,index=N,...
>>
>> but when I attempted to test AHCI, a variety of plausible things I tried
>> like
>>
>>   -drive if=ahci,...
>>   -drive if=ide-ahci,...
>>   -drive if=ide,bus=ahci.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.
> 
> 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
> 
> The first -device there creates the AHCI controller. The -drive specifies
> the disk backing store that will be used. The last -device there connects
> 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

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

      parent reply	other threads:[~2011-11-30 12:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 12:11 [Qemu-devel] Using AHCI drives in qemu Chris Webb
2011-11-30 12:20 ` Daniel P. Berrange
2011-11-30 12:42   ` Chris Webb
2011-11-30 12:51     ` Daniel P. Berrange
2011-11-30 12:55   ` Andreas Färber [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ED627BA.9070606@suse.de \
    --to=afaerber@suse.de \
    --cc=chris@arachsys.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).