Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1qgNeI-0000Xm-BX for mharc-qemu-trivial@gnu.org; Wed, 13 Sep 2023 07:03:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgNeF-0000RW-9L for qemu-trivial@nongnu.org; Wed, 13 Sep 2023 07:03:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgNeC-0002Bg-Pt for qemu-trivial@nongnu.org; Wed, 13 Sep 2023 07:03:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694602982; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Z5gcQNTNLHmmy+uQMPBp920TBQ4Kf4a5M3vofMatqLM=; b=PLy5pA5IC+dZ3uV7zpihBQmfFrQT6dG1/NF1ssHEbRXCJ81GWzL+joBS8XFEhoXb5/k3Fs QvYqaS73JO6JO0TuC//JFJ0OZF6tZJ36YXP02XPTydRvj5BfGmR5W9yfcGj5gX3iTfgLXm IoQYbnwAx1L/CKqjj7edk7WfcYPv1zw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-643-qEVuJrf3MXCz9DXZNQLXUQ-1; Wed, 13 Sep 2023 07:03:01 -0400 X-MC-Unique: qEVuJrf3MXCz9DXZNQLXUQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 14BD6805B32; Wed, 13 Sep 2023 11:03:01 +0000 (UTC) Received: from [10.39.194.255] (unknown [10.39.194.255]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A5632200A4B6; Wed, 13 Sep 2023 11:02:59 +0000 (UTC) Message-ID: <611b3a2e-449a-dec3-84f4-ac344db07fad@redhat.com> Date: Wed, 13 Sep 2023 13:02:58 +0200 MIME-Version: 1.0 Subject: Re: [PATCH v2] hw/i386/pc: fix code comment on cumulative flash size Content-Language: en-US To: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Marcel Apfelbaum , Paolo Bonzini , Richard Henderson , Eduardo Habkost , qemu-trivial@nongnu.org References: <20230912155553.82514-1-lersek@redhat.com> <47336aed-d6e9-a844-d7ee-1f8944cbb882@linaro.org> From: Laszlo Ersek In-Reply-To: <47336aed-d6e9-a844-d7ee-1f8944cbb882@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 Received-SPF: pass client-ip=170.10.129.124; envelope-from=lersek@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2023 11:03:07 -0000 On 9/12/23 18:40, Philippe Mathieu-Daudé wrote: > On 12/9/23 17:55, Laszlo Ersek wrote: >> - The comment is incorrectly indented / formatted. >> >> - The comment states a 8MB limit, even though the code enforces a 16MB >>    limit. >> >> Both of these warts come from commit 0657c657eb37 ("hw/i386/pc: add max >> combined fw size as machine configuration option", 2020-12-09); clean >> them >> up. >> >> Arguably, it's also better to be consistent with the binary units >> (such as >> "MiB") that QEMU uses nowadays. >> >> Cc: "Michael S. Tsirkin" (supporter:PC) >> Cc: Marcel Apfelbaum (supporter:PC) >> Cc: Paolo Bonzini (maintainer:X86 TCG CPUs) >> Cc: Richard Henderson (maintainer:X86 >> TCG CPUs) >> Cc: Eduardo Habkost (maintainer:X86 TCG CPUs) >> Cc: qemu-trivial@nongnu.org >> Fixes: 0657c657eb37 >> Signed-off-by: Laszlo Ersek >> --- >> >> Notes: >>      v2: >>           - use the binary units MiB, KiB, GiB comprehensively in the >> comment > > I was going to suggest that ;) > > Reviewed-by: Philippe Mathieu-Daudé And when I was writing the patch, I was 100% sure that you were going to be my first reviewer. :) Thanks! Laszlo > >> >>   hw/i386/pc.c | 12 ++++++------ >>   1 file changed, 6 insertions(+), 6 deletions(-) >