From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvUvT-0008QA-LJ for qemu-devel@nongnu.org; Thu, 09 Feb 2012 09:24:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvUvP-0002os-0Y for qemu-devel@nongnu.org; Thu, 09 Feb 2012 09:24:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:64322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvUvO-0002oi-QA for qemu-devel@nongnu.org; Thu, 09 Feb 2012 09:24:38 -0500 Message-ID: <4F33D7F1.9050709@redhat.com> Date: Thu, 09 Feb 2012 15:28:01 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <1327962588-5230-1-git-send-email-agraf@suse.de> In-Reply-To: <1327962588-5230-1-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ATA: Allow WIN_SECURITY_FREEZE_LOCK as nop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Jan Kiszka , qemu-devel Developers Am 30.01.2012 23:29, schrieb Alexander Graf: > When using Windows 8 with an AHCI disk drive, it issues a blue screen. > The reason is that WIN_SECURITY_FREEZE_LOCK / CFA_WEAR_LEVEL is not > supported by our ATA implementation, but Windows expects it to be there. Is there anything that makes Windows believe that we support it? The spec says bits in IDENTIFY word 82 and 128 must be set to indicate support for the security feature set, and we don't set those. Might be just a Windows bug, of course... > Since without security stuff implemented, the lock would be a nop anyway > and CFA_WEAR_LEVEL already is treated as a nop, let's just allow the cmd > for HD drives as well. That way Windows is happy. It sets the sector count register to 0, which isn't exactly nop. In any case, the code would at the very least need a comment that it's used for two separate commands, so that we still remember this when some time in the future someone writes a real implementation. Kevin