summaryrefslogtreecommitdiffstats
path: root/include/hw/boards.h
diff options
context:
space:
mode:
authorPaolo Bonzini2021-06-17 17:53:05 +0200
committerPaolo Bonzini2021-06-25 16:13:50 +0200
commitabc2f51144242e819fd7af69d3e7c199cc9d7004 (patch)
tree25e547677cbc4c8e93dcbcc43d2bf729dfa91381 /include/hw/boards.h
parentmachine: move common smp_parse code to caller (diff)
downloadqemu-abc2f51144242e819fd7af69d3e7c199cc9d7004.tar.gz
qemu-abc2f51144242e819fd7af69d3e7c199cc9d7004.tar.xz
qemu-abc2f51144242e819fd7af69d3e7c199cc9d7004.zip
machine: add error propagation to mc->smp_parse
Clean up the smp_parse functions to use Error** instead of exiting. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20210617155308.928754-9-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/boards.h')
-rw-r--r--include/hw/boards.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/boards.h b/include/hw/boards.h
index 87ae5cc300..0483d6af86 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -210,7 +210,7 @@ struct MachineClass {
void (*reset)(MachineState *state);
void (*wakeup)(MachineState *state);
int (*kvm_type)(MachineState *machine, const char *arg);
- void (*smp_parse)(MachineState *ms, QemuOpts *opts);
+ void (*smp_parse)(MachineState *ms, QemuOpts *opts, Error **errp);
BlockInterfaceType block_default_type;
int units_per_default_bus;