Received: from eggs.gnu.org ([2001:4830:134:3::10]:47473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuJEu-0005q6-10 for qemu-devel@nongnu.org; Fri, 28 Nov 2014 05:57:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuJEn-00065b-TI for qemu-devel@nongnu.org; Fri, 28 Nov 2014 05:57:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuJEn-00065N-N1 for qemu-devel@nongnu.org; Fri, 28 Nov 2014 05:57:21 -0500 From: Markus Armbruster References: <1416392276-10408-1-git-send-email-tumanova@linux.vnet.ibm.com> <20141125130115.GD21126@stefanha-thinkpad.redhat.com> <5475A890.5060705@linux.vnet.ibm.com> Date: Fri, 28 Nov 2014 11:57:12 +0100 In-Reply-To: <5475A890.5060705@linux.vnet.ibm.com> (Ekaterina Tumanova's message of "Wed, 26 Nov 2014 13:16:48 +0300") Message-ID: <87egsn8uev.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 0/6] Geometry and blocksize support for backing devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ekaterina Tumanova Cc: kwolf@redhat.com, dahi@linux.vnet.ibm.com, Public KVM Mailing List , mihajlov@linux.vnet.ibm.com, borntraeger@de.ibm.com, Stefan Hajnoczi , cornelia.huck@de.ibm.com, pbonzini@redhat.com Ekaterina Tumanova writes: > On 11/25/2014 04:01 PM, Stefan Hajnoczi wrote: [...] >> 3. Why does s390 need to customize hd_geometry_guess()? >> > Since hd_geometry_guess contains semantics of x86-specific LBA > translation, we have to modify it not to get in the way of z > architecture I already explained this in my review, but it's buried among other stuff, so let me repeat it here: The only caller that passes non-null ptrans to hd_geometry_guess() is ide_dev_initfn(), and the only user of the value that gets stored there is pc_cmos_init_late(). We store a highly PC-specific value there. That's okay, it's used only by PC machines. The whole concept "BIOS translation" makes no sense for other machines. Heck, it makes barely sense even on PCs.