machine: pass QAPI struct to mc->smp_parse
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 15:53:06 +0000 (17:53 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Jun 2021 14:16:11 +0000 (16:16 +0200)
commit1e63fe685804dfadddd643bf3860b1a59702d4bf
tree8f83101a313b998195a35e2908e385dc6d3086d0
parentabc2f51144242e819fd7af69d3e7c199cc9d7004
machine: pass QAPI struct to mc->smp_parse

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.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210617155308.928754-10-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/machine.c
hw/i386/pc.c
include/hw/boards.h
qapi/machine.json