From: "Blue Swirl" <blauwirbel@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH][UPDATE3] Add -drive parameter
Date: Sun, 25 Nov 2007 22:54:57 +0200 [thread overview]
Message-ID: <f43fc5580711251254u4358da62s68a71ac7c23b8fba@mail.gmail.com> (raw)
In-Reply-To: <11954606662783@bull.net>
On 11/19/07, Laurent Vivier <Laurent.Vivier@bull.net> wrote:
>
> This is an update with Qemu CVS tree and comments from Blue Swirl.
>
> This patch introduces a new parameter allowing to define drives.
>
> The new parameter is "-drive":
>
> -drive [file=file][,if=type][,bus=n][,unit=m][,media=d][index=i][,cyls=c,heads=h,secs=s[,trans=t]][snapshot=on|off]
>
> where:
>
> file is the disk image
> type is the interface type (ide, scsi, sd, mtd, floppy, pflash)
> n is the bus number of the given type
> m is the unit number on the given bus
> d is the type of the media (disk, cdrom)
> c,h,s,t are the parameters usually given by -hdachs
> snapshot allows to enable or not the snapshot for this disk
> i is an index number within the given type (replace bus,unit)
>
> "-cdrom file" is an alias for "-drive file=file,index=2,media=cdrom"
> "-hda file" is an alias for "-drive file=file,index=0,media=disk"
> "-hdb file" is an alias for "-drive file=file,index=1,media=disk"
> "-hdc file" is an alias for "-drive file=file,index=2,media=disk"
> "-hdd file" is an alias for "-drive file=file,index=3,media=disk"
> "-hda file -hdachs a,b,c" is an alias for
> "-drive file=file,index=0,cyls=a,heads=b,secs=c"
>
> You can also define a cdrom on the slace of ide0 with:
> "-drive file=file,if=ide,index=1,media=cdrom"
>
> You can define an empty cdrom:
> "-drive if=ide,index=1,media=cdrom"
>
> "-drive file=file,if=scsi,bus=0,unit=6" allows to connect the disk image file
> to the scsi bus 0 with the unit id 6.
>
> if there is no SCSI disk, the SCSI interface is not created.
>
> It also defines the default interface type to "scsi" for targets
> "realview", "SS-5", "SS-10", "versatilepb", "versatileab"
> to keep old behavior, where "-hda" is a SCSI disk.
>
> "-fda file" is an alias for "-drive file=file,index=0,if=floppy"
> "-fdb file" is an alias for "-drive file=file,index=1,if=floppy"
> "-pflash file" is an alias for "-drive file=file,if=pflash"
> "-mtdblock file" is an alias for "-drive file=file,if=mtd"
> "-sd file" becomes the alias of "-drive file=file,if=sd"
>
> "-drive file=a -drive file=b" will be interpreted like "-hda a -hdb b"
Any objections to committing this patch? To me it looks fine, but I
have tested only Sparc.
prev parent reply other threads:[~2007-11-25 20:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-19 8:24 [Qemu-devel] [PATCH][UPDATE3] Add -drive parameter Laurent Vivier
2007-11-25 20:54 ` Blue Swirl [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=f43fc5580711251254u4358da62s68a71ac7c23b8fba@mail.gmail.com \
--to=blauwirbel@gmail.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).