From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBoTG-0001cs-31 for qemu-devel@nongnu.org; Mon, 18 Apr 2011 09:26:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QBoT8-0007mF-OZ for qemu-devel@nongnu.org; Mon, 18 Apr 2011 09:26:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QBoT8-0007m0-EH for qemu-devel@nongnu.org; Mon, 18 Apr 2011 09:26:22 -0400 From: Markus Armbruster References: Date: Mon, 18 Apr 2011 15:26:15 +0200 In-Reply-To: (Amit Shah's message of "Mon, 18 Apr 2011 17:15:46 +0530") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] atapi: Add 'medium ready' to 'medium not ready' transition on cd change List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: Kevin Wolf , Stefan Hajnoczi , Jes Sorensen , qemu list , Juan Quintela Amit Shah writes: > MMC-5 Table F.1 lists errors that can be thrown for the TEST_UNIT_READY > command. Going from medium not ready to medium ready states is > communicated by throwing an error. > > This adds the missing 'tray opened' event that we fail to report to > guests. After doing this, older Linux guests properly revalidate a disc > on the change command. HSM violation errors, which caused Linux guests > to do a soft-reset of the link, also go away: > > ata2.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 > sr 1:0:0:0: CDB: Test Unit Ready: 00 00 00 00 00 00 > ata2.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0 > res 01/60:00:00:00:00/00:00:00:00:00/a0 Emask 0x3 (HSM violation) > ata2.00: status: { ERR } > ata2: soft resetting link > ata2.00: configured for MWDMA2 > ata2: EH complete > > Signed-off-by: Amit Shah Linux is happy with it in my tests. Tested-by: Markus Armbruster