From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8smH-0007pr-Vh for qemu-devel@nongnu.org; Thu, 30 Jan 2014 09:39:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8sm9-0001ht-8g for qemu-devel@nongnu.org; Thu, 30 Jan 2014 09:39:37 -0500 Received: from mail-ea0-x232.google.com ([2a00:1450:4013:c01::232]:48027) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8sm9-0001hk-1z for qemu-devel@nongnu.org; Thu, 30 Jan 2014 09:39:29 -0500 Received: by mail-ea0-f178.google.com with SMTP id a15so1720440eae.9 for ; Thu, 30 Jan 2014 06:39:28 -0800 (PST) Date: Thu, 30 Jan 2014 15:39:25 +0100 From: Stefan Hajnoczi Message-ID: <20140130143925.GC15494@stefanha-thinkpad.redhat.com> References: <1391087282-17686-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1391087282-17686-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block: handle "rechs" translation option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Thu, Jan 30, 2014 at 02:08:02PM +0100, Paolo Bonzini wrote: > The rechs translation option is so obscure that we support it but do > not even attempt to parse it. Archeologists will surely be puzzled > by this (assuming they care about QEMU and CHS translation), so fix it. > > Signed-off-by: Paolo Bonzini > --- > blockdev.c | 2 ++ > vl.c | 18 ++++++++++++------ > 2 files changed, 14 insertions(+), 6 deletions(-) Is my understanding correct that QEMU actually does nothing with RECHS except poke a magic number into CMOS memory when x86 guests start? (I ask because we don't even use the constant: $ git grep _RECHS include/hw/block/block.h:#define BIOS_ATA_TRANSLATION_RECHS 4) Please also add changes for: blockdev.c: QemuOptsList qemu_legacy_drive_opts = { ... },{ .name = "trans", .type = QEMU_OPT_STRING, .help = "chs translation (auto, lba, none)", },{ qemu-options.hx: Force hard disk 0 physical geometry (1 <= @var{c} <= 16383, 1 <= @var{h} <= 16, 1 <= @var{s} <= 63) and optionally force the BIOS translation mode (@var{t}=none, lba or auto).