From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1InFzS-0007mc-Ak for qemu-devel@nongnu.org; Wed, 31 Oct 2007 12:00:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1InFzN-0007k6-MI for qemu-devel@nongnu.org; Wed, 31 Oct 2007 12:00:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1InFzN-0007jw-EL for qemu-devel@nongnu.org; Wed, 31 Oct 2007 12:00:17 -0400 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1InFre-000428-0U for qemu-devel@nongnu.org; Wed, 31 Oct 2007 11:52:18 -0400 Received: from localhost (localhost [127.0.0.1]) by ecfrec.frec.bull.fr (Postfix) with ESMTP id A001319D950 for ; Wed, 31 Oct 2007 16:52:09 +0100 (CET) Received: from ecfrec.frec.bull.fr ([127.0.0.1]) by localhost (ecfrec.frec.bull.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25387-04 for ; Wed, 31 Oct 2007 16:52:06 +0100 (CET) Received: from ecn002.frec.bull.fr (ecn002.frec.bull.fr [129.183.4.6]) by ecfrec.frec.bull.fr (Postfix) with ESMTP id 2E89E19D90E for ; Wed, 31 Oct 2007 16:52:06 +0100 (CET) In-Reply-To: Date: Wed, 31 Oct 2007 16:51:48 +0100 Message-Id: <11938459081181@bull.net> Mime-Version: 1.0 From: Laurent Vivier Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: [Qemu-devel] [PATCH 0/7] Add -disk interface Reply-To: Laurent Vivier , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Laurent.Vivier@bull.net This series of patches add a new interface to qemu to define storages. The new parameter is "-disk": -disk file[,if=3Dtype][,index=3Di][,bus=3Dn][,unit=3Dm][,media=3Dd][,cy= ls=3Dc,heads=3Dh,secs=3Ds[,trans=3Dt]][snapshot=3Don|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=3D2,media=3Dcdrom" "-hda file" is an alias for "-disk file,index=3D0,media=3Ddisk" "-hdb file" is an alias for "-disk file,index=3D1,media=3Ddisk" "-hdc file" is an alias for "-disk file,index=3D2,media=3Ddisk" "-hdd file" is an alias for "-disk file,index=3D3,media=3Ddisk" "-hda file -hdachs a,b,c" is an alias for "-disk file,index=3D0,cyls=3Da,heads=3Db,secs=3Dc" "-fda file" is an alias for "-disk file,index=3D0,if=3Dfloppy" "-fdb file" is an alias for "-disk file,index=3D1,if=3Dfloppy"=20 "-pflash file" is an alias for "-disk file,if=3Dpflash" "-mtdblock file" is an alias for "-disk file,if=3Dmtd" "-sd file" becomes the alias of "-disk file,if=3Dsd" You can also define a cdrom on the slave of ide0 with: "-disk file,if=3Dide,bus=3D0,unit=3D1,media=3Dcdrom" You can define a cdrom on the scsi bus 0 with unit id 3: "-disk file,if=3Dscsi,bus=3D0,unit=3D3,media=3Dcdrom" You can define a scsi disk on bus 0 with unit id 6 with: "-disk file,if=3Dscsi,bus=3D0,unit=3D6" 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 -h= dc 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"