All of lore.kernel.org
 help / color / mirror / Atom feed
From: "wangyanan (Y)" <wangyanan55@huawei.com>
To: "Daniel P. Berrangé" <berrange@redhat.com>, qemu-devel@nongnu.org
Cc: Igor Mammedov <imammedo@redhat.com>,
	Andrew Jones <drjones@redhat.com>,
	Richard Henderson <richard.henderson@linaro.org>,
	Eduardo Habkost <ehabkost@redhat.com>,
	Paolo Bonzini <pbonzini@redhat.com>
Subject: Re: [PATCH 2/4] qemu-options: re-arrange CPU topology options
Date: Mon, 28 Jun 2021 20:21:31 +0800	[thread overview]
Message-ID: <a6b9443f-59f7-9f7c-00ef-55b886b1e54c@huawei.com> (raw)
In-Reply-To: <20210628113047.462498-3-berrange@redhat.com>


On 2021/6/28 19:30, Daniel P. Berrangé wrote:
> The list of CPU topology options are presented in a fairly arbitrary
> order currently. Re-arrange them so that they're ordered from largest to
> smallest unit
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
>   qemu-options.hx | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/qemu-options.hx b/qemu-options.hx
> index ba3ca9da1d..aa33dfdcfd 100644
> --- a/qemu-options.hx
> +++ b/qemu-options.hx
> @@ -196,17 +196,17 @@ SRST
>   ERST
>   
>   DEF("smp", HAS_ARG, QEMU_OPTION_smp,
> -    "-smp [cpus=]n[,maxcpus=cpus][,cores=cores][,threads=threads][,dies=dies][,sockets=sockets]\n"
> +    "-smp [cpus=]n[,maxcpus=cpus][,sockets=sockets][,dies=dies][,cores=cores][,threads=threads]\n"
>       "                set the number of CPUs to 'n' [default=1]\n"
>       "                maxcpus= maximum number of total cpus, including\n"
nit: There are always "CPUs" elsewhere, it's better to also use "total 
CPUs" here.
>       "                offline CPUs for hotplug, etc\n"
> +    "                sockets= number of discrete sockets in the system\n",
> +    "                dies= number of CPU dies on one socket (for PC only)\n"
>       "                cores= number of CPU cores on one socket (for PC, it's on one die)\n"
>       "                threads= number of threads on one CPU core\n"
> -    "                dies= number of CPU dies on one socket (for PC only)\n"
> -    "                sockets= number of discrete sockets in the system\n",
>           QEMU_ARCH_ALL)
>   SRST
> -``-smp [cpus=]n[,cores=cores][,threads=threads][,dies=dies][,sockets=sockets][,maxcpus=maxcpus]``
> +``-smp [cpus=]n[,maxcpus=maxcpus][,sockets=sockets][,dies=dies][,cores=cores][,threads=threads]``
>       Simulate an SMP system with n CPUs. On the PC target, up to 255 CPUs
>       are supported. On Sparc32 target, Linux limits the number of usable
>       CPUs to 4. For the PC target, the number of cores per die, the
This improves the readability a lot,

Reviewed-by: Yanan Wang <wangyanan55@huawei.com>

Thanks,
Yanan
.


  reply	other threads:[~2021-06-28 12:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28 11:30 [PATCH 0/4] docs: improve -smp documentation Daniel P. Berrangé
2021-06-28 11:30 ` [PATCH 1/4] docs: fix typo s/Intel/AMD/ in CPU model notes Daniel P. Berrangé
2021-06-28 13:52   ` wangyanan (Y)
2021-06-28 11:30 ` [PATCH 2/4] qemu-options: re-arrange CPU topology options Daniel P. Berrangé
2021-06-28 12:21   ` wangyanan (Y) [this message]
2021-07-12 10:10   ` Daniel P. Berrangé
2021-07-12 12:23     ` wangyanan (Y)
2021-07-12 13:09   ` Pankaj Gupta
2021-06-28 11:30 ` [PATCH 3/4] qemu-options: tweak to show that CPU count is optional Daniel P. Berrangé
2021-06-28 12:29   ` wangyanan (Y)
2021-06-28 11:30 ` [PATCH 4/4] qemu-options: rewrite help for -smp options Daniel P. Berrangé
2021-06-28 13:46   ` wangyanan (Y)
2021-07-09 14:15     ` Daniel P. Berrangé
2021-06-28 14:55 ` [PATCH 0/4] docs: improve -smp documentation Andrew Jones
2021-07-09 20:48 ` Eduardo Habkost
2021-07-13 13:22   ` Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a6b9443f-59f7-9f7c-00ef-55b886b1e54c@huawei.com \
    --to=wangyanan55@huawei.com \
    --cc=berrange@redhat.com \
    --cc=drjones@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=imammedo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.