machine: move common smp_parse code to caller
commit593d3c51481bc40433474bd2b922217e819f1f68
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 15:53:04 +0000 (17 17:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jun 2021 14:13:49 +0000 (25 16:13 +0200)
treef4bbc134a86dec05d18559cee82d17373679985f
parent67872eb8ed194117f5af71694374a083c3f45eb2
machine: move common smp_parse code to caller

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>
Message-Id: <20210617155308.928754-8-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine.c
hw/i386/pc.c