Aurelien Jarno <aurel...@aurel32.net> writes: > On Tue, Mar 05, 2013 at 08:22:57AM +0800, Peter Maydell wrote: >> On 5 March 2013 08:19, Aurelien Jarno <aurel...@aurel32.net> wrote: >> > The versatile express has no SCSI card, but instead boot on an SD card. >> > Change block_default_type accordingly. >> >> I notice that no other board has SD as the block_default_type... >> >> What effect does this actually have on the user experience? > > The effect is that the user don't has to specify the interface type. > Basically: > > -drive file=/path/to/file,if=sd > can be replaced by > -drive file=/path/to/file > > It means the user doesn't have to know the details of the machine to > know how to attach a disk.
Correct. Also affects monitor commands. See commit 2d0d2837. > Note that the user here can also be a script, > which then becomes a bit simpler. > >> Also, won't vl.c now try to create a cdrom drive on the SD interface? >> > > It still creates a cdrom drive as before, but still doesn't try to > connect it to the SD interface. In short the behaviour on that side is > unchanged. An if=sd CD-ROM is weird, but unused weirdness has no effect. If it bothers you, set .no_cdrom along with .block_default_type. See also my unsuccessful attempt at getting rid of unused default drives[*], and observations made during review of Peter's followup attempt to improve SD cards[**]. [*] http://lists.nongnu.org/archive/html/qemu-devel/2012-08/msg02993.html [**] http://lists.nongnu.org/archive/html/qemu-devel/2012-08/msg03160.html