[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 09/11] machine: pass QAPI struct to mc->smp_parse
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 09/11] machine: pass QAPI struct to mc->smp_parse |
Date: |
Thu, 10 Jun 2021 15:37:09 +0100 |
User-agent: |
Mutt/2.0.7 (2021-05-04) |
On Thu, Jun 10, 2021 at 03:35:36PM +0200, Paolo Bonzini wrote:
> As part of converting -smp to a property with a QAPI type, define
> the struct and use it to do the actual parsing. machine_smp_parse
> takes care of doing the QemuOpts->QAPI conversion by hand, for now.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> hw/core/machine.c | 33 +++++++++++++++++++++++----------
> hw/i386/pc.c | 18 ++++++++----------
> include/hw/boards.h | 2 +-
> qapi/machine.json | 27 +++++++++++++++++++++++++++
> 4 files changed, 59 insertions(+), 21 deletions(-)
> +##
> +# @SMPConfiguration:
> +#
> +# Schema for CPU topology configuration.
> +#
> +# @cpus: number of virtual CPUs in the virtual machine
> +#
> +# @sockets: number of sockets in the CPU topology
> +#
> +# @dies: number of dies per socket in the CPU topology
> +#
> +# @cores: number of cores per thread in the CPU topology
> +#
> +# @threads: number of threads per core in the CPU topology
> +#
> +# @maxcpus: maximum number of hotpluggable virtual CPUs in the virtual
> machine
Perhaps document that a value of "0" means "automatically figure
out a suitable count" based on other specified values.
>From a functional POV though it is fine so
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH 11/11] machine: add smp compound property, (continued)
- [PATCH 11/11] machine: add smp compound property, Paolo Bonzini, 2021/06/10
- [PATCH 02/11] keyval: introduce keyval_merge, Paolo Bonzini, 2021/06/10
- [PATCH 03/11] keyval: introduce keyval_parse_into, Paolo Bonzini, 2021/06/10
- [PATCH 05/11] qemu-option: remove now-dead code, Paolo Bonzini, 2021/06/10
- [PATCH 10/11] machine: reject -smp dies!=1 for non-PC machines, Paolo Bonzini, 2021/06/10
- [PATCH 09/11] machine: pass QAPI struct to mc->smp_parse, Paolo Bonzini, 2021/06/10
- Re: [PATCH 09/11] machine: pass QAPI struct to mc->smp_parse,
Daniel P . Berrangé <=
- [PATCH 08/11] machine: add error propagation to mc->smp_parse, Paolo Bonzini, 2021/06/10
- Re: [PATCH 00/11] vl: compound properties for machines, no-reply, 2021/06/14