From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28ABBC5DF63 for ; Wed, 6 Nov 2019 16:49:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECB61217F5 for ; Wed, 6 Nov 2019 16:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732169AbfKFQtI (ORCPT ); Wed, 6 Nov 2019 11:49:08 -0500 Received: from foss.arm.com ([217.140.110.172]:43058 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728462AbfKFQtI (ORCPT ); Wed, 6 Nov 2019 11:49:08 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6080D46A; Wed, 6 Nov 2019 08:49:07 -0800 (PST) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 786DD3F719; Wed, 6 Nov 2019 08:49:06 -0800 (PST) Date: Wed, 6 Nov 2019 16:49:04 +0000 From: Andre Przywara To: Alexandru Elisei Cc: kvm@vger.kernel.org, Will Deacon , Julien Thierry , Marc Zyngier , Suzuki Poulose , Julien Grall Subject: Re: [PATCH kvmtool 05/16] kvmtool: Use MB consistently Message-ID: <20191106164904.23ed2e76@donnerap.cambridge.arm.com> In-Reply-To: <1569245722-23375-6-git-send-email-alexandru.elisei@arm.com> References: <1569245722-23375-1-git-send-email-alexandru.elisei@arm.com> <1569245722-23375-6-git-send-email-alexandru.elisei@arm.com> Organization: ARM X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Mon, 23 Sep 2019 14:35:11 +0100 Alexandru Elisei wrote: > The help text for the -m/--mem argument states that the guest memory size > is in MiB (mebibyte). We all know that MB (megabyte) is the same thing as > MiB, and indeed this is how MB is used throughout kvmtool. > > So replace MiB with MB, so people don't get the wrong idea and start > believing that for kvmtool a MB is 10^6 bytes, because it isn't. > > Signed-off-by: Alexandru Elisei Reviewed-by: Andre Przywara Cheers, Andre > --- > Documentation/kvmtool.1 | 4 ++-- > builtin-run.c | 2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Documentation/kvmtool.1 b/Documentation/kvmtool.1 > index 2b8c274dc3ff..25d46f8f51f9 100644 > --- a/Documentation/kvmtool.1 > +++ b/Documentation/kvmtool.1 > @@ -10,7 +10,7 @@ kvmtool is a userland tool for creating and controlling KVM guests. > .SH "KVMTOOL COMMANDS" > .sp > .PP > -.B run -k [\-c ] [\-m ] [\-p ] > +.B run -k [\-c ] [\-m ] [\-p ] > .br > .B [\-i ] [\-d ] [\-\-console serial|virtio|hv] > .br > @@ -30,7 +30,7 @@ The number of virtual CPUs to run. > .sp > .B \-m, \-\-mem > .RS 4 > -Virtual machine memory size in MiB. > +Virtual machine memory size in MB. > .RE > .sp > .B \-p, \-\-params > diff --git a/builtin-run.c b/builtin-run.c > index 532c06f90ba0..cff44047bb1c 100644 > --- a/builtin-run.c > +++ b/builtin-run.c > @@ -98,7 +98,7 @@ void kvm_run_set_wrapper_sandbox(void) > "A name for the guest"), \ > OPT_INTEGER('c', "cpus", &(cfg)->nrcpus, "Number of CPUs"), \ > OPT_U64('m', "mem", &(cfg)->ram_size, "Virtual machine memory" \ > - " size in MiB."), \ > + " size in MB."), \ > OPT_CALLBACK('\0', "shmem", NULL, \ > "[pci:]:[:handle=][:create]", \ > "Share host shmem with guest via pci device", \