mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
plugin: propagate errors
qemu_finish_machine_init currently can only exit QEMU if it fails. Prepare for giving it proper error propagation, and possibly for adding a plugin_add monitor command that calls an accelerator method. While at it, make all errors from plugin_load look the same. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f2ce39b4f0
commit
0572f558cb
4 changed files with 21 additions and 25 deletions
|
@ -671,9 +671,7 @@ int main(int argc, char **argv, char **envp)
|
|||
exit(1);
|
||||
}
|
||||
trace_init_file();
|
||||
if (qemu_plugin_load_list(&plugins)) {
|
||||
exit(1);
|
||||
}
|
||||
qemu_plugin_load_list(&plugins, &error_fatal);
|
||||
|
||||
/* Zero out regs */
|
||||
memset(regs, 0, sizeof(struct target_pt_regs));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue