qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 4/4] qmp: add BLOCK_MEDIUM_EJECT event


From: Markus Armbruster
Subject: Re: [Qemu-devel] [PATCH 4/4] qmp: add BLOCK_MEDIUM_EJECT event
Date: Fri, 17 Feb 2012 12:48:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

Kevin Wolf <address@hidden> writes:

> Am 17.02.2012 11:32, schrieb Paolo Bonzini:
>> On 02/16/2012 03:10 PM, Luiz Capitulino wrote:
>>> We have two external entities: the guest and the mngt app. It seems to me 
>>> that
>>> the guest is seeing each step at a time.
>> 
>> The guest is seeing each step separately, but that is managed by the
>> device model (which sends two separate error codes: a NOT READY for
>> opening the tray, and a UNIT ATTENTION for closing the tray and changing
>> medium) rather than by the monitor.
>
> But this separation isn't set in stone. Maybe it would make sense to
> move the logic into the block layer. Of course, then it would have to
> meet the needs of floppies as well.

And whatever other device with removable media comes up.

We should not move device-specific stuff from device models into the
block layer.  The block layer is fat enough as it is.  And it's not
meant for sharing code among device models.  There are better ways to do
that.



reply via email to

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