[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 07/11] machine: move common smp_parse code to caller
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 07/11] machine: move common smp_parse code to caller |
Date: |
Thu, 10 Jun 2021 15:34:37 +0100 |
User-agent: |
Mutt/2.0.7 (2021-05-04) |
On Thu, Jun 10, 2021 at 03:35:34PM +0200, Paolo Bonzini wrote:
> Most of smp_parse and pc_smp_parse is guarded by an "if (opts)"
> conditional, and the rest is common to both function. Move the
> conditional and the common code to the caller, machine_smp_parse.
>
> Move the replay_add_blocker call after all errors are checked for.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> hw/core/machine.c | 112 ++++++++++++++++++++++----------------------
> hw/i386/pc.c | 116 +++++++++++++++++++++-------------------------
> 2 files changed, 110 insertions(+), 118 deletions(-)
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 00/11] vl: compound properties for machines, Paolo Bonzini, 2021/06/10
- [PATCH 01/11] qom: export more functions for use with non-UserCreatable objects, Paolo Bonzini, 2021/06/10
- [PATCH 04/11] vl: switch -M parsing to keyval, Paolo Bonzini, 2021/06/10
- [PATCH 06/11] machine: move dies from X86MachineState to CpuTopology, Paolo Bonzini, 2021/06/10
- [PATCH 07/11] machine: move common smp_parse code to caller, Paolo Bonzini, 2021/06/10
- Re: [PATCH 07/11] machine: move common smp_parse code to caller,
Daniel P . Berrangé <=
- [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