mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
593d3c5148
commit
abc2f51144
4 changed files with 34 additions and 32 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue