From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8srg-0002R6-F5 for qemu-devel@nongnu.org; Thu, 30 Jan 2014 09:45:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8srY-0003kp-MZ for qemu-devel@nongnu.org; Thu, 30 Jan 2014 09:45:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:12866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8srY-0003io-FU for qemu-devel@nongnu.org; Thu, 30 Jan 2014 09:45:04 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0UEj1fL012516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 30 Jan 2014 09:45:03 -0500 Message-ID: <52EA656A.3000604@redhat.com> Date: Thu, 30 Jan 2014 15:44:58 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1391087282-17686-1-git-send-email-pbonzini@redhat.com> <8761p1bkoi.fsf@blackfin.pond.sub.org> In-Reply-To: <8761p1bkoi.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] block: handle "rechs" translation option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com Il 30/01/2014 15:37, Markus Armbruster ha scritto: > Paolo Bonzini writes: > >> The rechs translation option is so obscure that we support it but do > > "Support" is a rather strong word: > > $ git-grep -i rechs > include/hw/block/block.h:#define BIOS_ATA_TRANSLATION_RECHS 4 As Stefan said, all we do is pass the info to the BIOS. > The right way to control IDE geometry translation is ide-hd property > bios-chs-trans. Unfortunately, you missed that one entirely. Have a > gander at bios_chs_trans_table[] in hw/core/qdev-properties.c. This one is handled by the other series I sent today. That's how I found it. > We also don't let the user ask for BIOS_ATA_TRANSLATION_LARGE. Its only > source is hd_geometry_guess(). I have no idea whether any user would > want to set it. But that applies to "rechs", too :) Yeah, you are right that this patch should cover "large" as well. Will send v2. Paolo