qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent.Vivier@bull.net>
To: qemu-devel@nongnu.org
Cc: Laurent.Vivier@bull.net
Subject: [Qemu-devel] [PATCH 0/7] Add -disk interface
Date: Wed, 31 Oct 2007 16:51:48 +0100	[thread overview]
Message-ID: <11938459081181@bull.net> (raw)
In-Reply-To: 


This series of patches add a new interface to qemu to define storages.

The new parameter is "-disk":

    -disk file[,if=type][,index=i][,bus=n][,unit=m][,media=d][,cyls=c,heads=h,secs=s[,trans=t]][snapshot=on|off]

where:

    file is the disk image
    type is the interface type (ide, scsi, floppy, pflash, mtd, sd)
    i is the index of the disk on the interface (0, 1, 2, ...)
    n is the bus number of the given type
    m is the unit number on the 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

"-cdrom file" is an alias for "-disk file,index=2,media=cdrom"
"-hda file" is an alias for "-disk file,index=0,media=disk"
"-hdb file" is an alias for "-disk file,index=1,media=disk"
"-hdc file" is an alias for "-disk file,index=2,media=disk"
"-hdd file" is an alias for "-disk file,index=3,media=disk"
"-hda file -hdachs a,b,c" is an alias for
                 "-disk file,index=0,cyls=a,heads=b,secs=c"
"-fda file" is an alias for "-disk file,index=0,if=floppy"
"-fdb file" is an alias for "-disk file,index=1,if=floppy" 
"-pflash file" is an alias for "-disk file,if=pflash"
"-mtdblock file" is an alias for "-disk file,if=mtd"
"-sd file" becomes the alias of "-disk file,if=sd"

You can also define a cdrom on the slave of ide0 with:
"-disk file,if=ide,bus=0,unit=1,media=cdrom"
You can define a cdrom on the scsi bus 0 with unit id 3:
"-disk file,if=scsi,bus=0,unit=3,media=cdrom"

You can define a scsi disk on bus 0 with unit id 6 with:

"-disk file,if=scsi,bus=0,unit=6"

You can define disks with default ordering:

"-disk a.img -disk b.img -disk c.img" is equal to "-hda a.img -hdb b.img -hdc c.img"

[PATCH 1/7] Add arg -disk to define new disk with more features

    Define -disk, support interface type "ide"

[PATCH 2/7] Add scsi support for the target PC

    support interface type "scsi"

[PATCH 3/7] Add floppy support by -disk

    support interface type "floppy"

[PATCH 4/7] remove fd_filename from the machine init interface

    change machine init interface to remove fd_filename

[PATCH 5/7] Add parallel flash support by -disk

    support interface type "pflash"

[PATCH 6/7] Add flash support by -disk

    support interface type "mtd"

[PATCH 7/7] Add SecureDigital support by -disk

    support interface type "sd"

             reply	other threads:[~2007-10-31 16:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 15:51 Laurent Vivier [this message]
2007-10-31 15:51 ` [Qemu-devel] [PATCH 1/7] Add arg -disk to define new disk with more features Laurent Vivier
2007-10-31 15:51   ` [Qemu-devel] [PATCH 2/7] Add scsi support for the target PC Laurent Vivier
2007-10-31 15:51     ` [Qemu-devel] [PATCH 3/7] Add floppy support by -disk Laurent Vivier
2007-10-31 15:51       ` [Qemu-devel] [PATCH 4/7] remove fd_filename from the machine init interface Laurent Vivier
2007-10-31 15:51         ` [Qemu-devel] [PATCH 5/7] Add parallel flash support by -disk Laurent Vivier
2007-10-31 15:51           ` [Qemu-devel] [PATCH 6/7] Add " Laurent Vivier
2007-10-31 15:51             ` [Qemu-devel] [PATCH 7/7] Add SecureDigital " Laurent Vivier

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=11938459081181@bull.net \
    --to=laurent.vivier@bull.net \
    --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).