Received: from eggs.gnu.org ([2001:4830:134:3::10]:57337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoBvR-0002Ut-7p for qemu-devel@nongnu.org; Wed, 04 Dec 2013 07:51:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VoBvM-0002Kj-3O for qemu-devel@nongnu.org; Wed, 04 Dec 2013 07:51:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23078) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VoBvL-0002Ke-RM for qemu-devel@nongnu.org; Wed, 04 Dec 2013 07:51:28 -0500 From: Markus Armbruster References: <1386132925-16728-1-git-send-email-aik@ozlabs.ru> <1386132925-16728-3-git-send-email-aik@ozlabs.ru> <529EEFD0.4060801@redhat.com> <878uw1klh5.fsf@blackfin.pond.sub.org> <529F1A0A.80003@ozlabs.ru> Date: Wed, 04 Dec 2013 13:51:24 +0100 In-Reply-To: <529F1A0A.80003@ozlabs.ru> (Alexey Kardashevskiy's message of "Wed, 04 Dec 2013 23:03:22 +1100") Message-ID: <87li00bwz7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/3] scsi-disk: check for meduim on ALLOW_MEDIUM_REMOVAL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Paolo Bonzini , Paul Mackerras , qemu-devel@nongnu.org Alexey Kardashevskiy writes: > On 12/04/2013 08:35 PM, Markus Armbruster wrote: >> Paolo Bonzini writes: >> >>> Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: >>>> This prevents the guest from preventing DVD medium removal when >>>> there is no medium. >>>> >>>> Without this, if the user has ejected a DVD, it is possible to >>>> have a block device with an open tray, no media but locked. >>> >>> I need to check this against a real disk. Thanks! >> >> If I remember correctly, I did, and it works. You can still close the >> open tray in this state. > > > I thought it is about NOT letting close the open tray. So the hardware can > be programmed to ignore the hardware "eject" button when the tray is open? >From memory: you can lock the medium whether the tray is open or not. The lock applies to the button operating the tray. It prevents medium eject. It never prevents closing an empty tray. I don't remember whether opening an empty tray is still permitted.