Received: from eggs.gnu.org ([2001:4830:134:3::10]:58145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwB3d-0007Ud-88 for qemu-devel@nongnu.org; Wed, 03 Dec 2014 09:37:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwB3X-0000fu-3O for qemu-devel@nongnu.org; Wed, 03 Dec 2014 09:37:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwB3W-0000fl-Se for qemu-devel@nongnu.org; Wed, 03 Dec 2014 09:37:27 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sB3EbQAJ004892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 3 Dec 2014 09:37:26 -0500 From: Markus Armbruster References: <1417610103-18234-1-git-send-email-kwolf@redhat.com> Date: Wed, 03 Dec 2014 15:37:23 +0100 In-Reply-To: <1417610103-18234-1-git-send-email-kwolf@redhat.com> (Kevin Wolf's message of "Wed, 3 Dec 2014 13:35:03 +0100") Message-ID: <87h9xckdek.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] ide: Check validity of logical block size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: jsnow@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Kevin Wolf writes: > Our IDE emulation can't handle logical block sizes other than 512. Check > for it. I guess this is in part due to the 512 literals sprinkled all over the IDE code. > The original assumption was that other values would silently be ignored > (which is bad enough), but it's not quite true: The physical block size > is exposed in IDENTIFY DEVICE as a multiple of the logical block size. > Setting a logical block size therefore also corrupts the physical block > size (4096/4096 doesn't silently downgrade to 4096/512, but 512/512). > > Signed-off-by: Kevin Wolf Reviewed-by: Markus Armbruster