[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] CDROM Eject behaviour
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-block] CDROM Eject behaviour |
Date: |
Sat, 14 Mar 2015 11:03:55 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Paolo Bonzini <address@hidden> writes:
> On 13/03/2015 12:18, Peter Lieven wrote:
>> This depends if we have a tray or slot in device. If you eject from a
>> slot in drive you can't load the media again. This is what Paolo
>> refers to as Desktop or Laptop CDROM.
>
> BTW, you are supposed to tell the OS what kind of device you have. MMC
> describes the "Removable Medium" feature and a "Loading Mechanism" type
> (Tables 98 and 99).
>
> 000b Caddy/Slot type loading mechanism
> 001b Tray type loading mechanism
>
> and even more usable:
>
> If the Load bit is set to zero, the Drive is unable to load the medium
> or cartridge via the START STOP UNIT command with the LoEj bit set to
> one, e.g. the tray type loading mechanism that is found in many portable
> PCs.
>
> If the Load bit is set to one, the Drive is able to load the medium or
> cartridge.
>
>
> scsi-cd sets the loading mechanism to "Tray" and the Load bit to one
> ("Desktop" type). ide-cd doesn't, and it should.
>
> So we can add a qdev property to choose between the two, but:
>
> - first, ide-cd should learn about the Removable Medium feature
>
> - the property should be reflected in the feature too
I agree we should fix ide-cd to properly declare its tray.
I'm not sure an option to select between tray and slot type is a good
idea. Our test coverage is spotty enough as it is.