From: "Daniel P. Berrange" <berrange@redhat.com>
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 12:51:23 +0000 [thread overview]
Message-ID: <20111130125123.GE28621@redhat.com> (raw)
In-Reply-To: <20111130124256.GB14986@arachsys.com>
On Wed, Nov 30, 2011 at 12:42:56PM +0000, Chris Webb wrote:
> Thanks for the swift reply!
>
> "Daniel P. Berrange" <berrange@redhat.com> 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?
I'm fairly sure such a patch would still be accepted.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
next prev parent reply other threads:[~2011-11-30 12:51 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 [this message]
2011-11-30 12:55 ` Andreas Färber
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=20111130125123.GE28621@redhat.com \
--to=berrange@redhat.com \
--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).