qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH] hw/vexpress: set default block type to SD
Date: Wed, 06 Mar 2013 10:25:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

Aurelien Jarno <address@hidden> writes:

> On Tue, Mar 05, 2013 at 08:22:57AM +0800, Peter Maydell wrote:
>> On 5 March 2013 08:19, Aurelien Jarno <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]