diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-27 04:58:26 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-15 12:51:56 -0500 |
commit | 0572f558cbc45acdd13ae3548c06ce650641f292 (patch) | |
tree | ccd1abeef475cb312a2647916ad833ec59ea2640 /include | |
parent | f2ce39b4f067fe8b8de6104a2d8ac558d35c330b (diff) | |
download | qemu-0572f558cbc45acdd13ae3548c06ce650641f292.zip qemu-0572f558cbc45acdd13ae3548c06ce650641f292.tar.gz qemu-0572f558cbc45acdd13ae3548c06ce650641f292.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/plugin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h index ab790ad..841deed 100644 --- a/include/qemu/plugin.h +++ b/include/qemu/plugin.h @@ -45,7 +45,7 @@ static inline void qemu_plugin_add_opts(void) } void qemu_plugin_opt_parse(const char *optarg, QemuPluginList *head); -int qemu_plugin_load_list(QemuPluginList *head); +int qemu_plugin_load_list(QemuPluginList *head, Error **errp); union qemu_plugin_cb_sig { qemu_plugin_simple_cb_t simple; @@ -199,7 +199,7 @@ static inline void qemu_plugin_opt_parse(const char *optarg, exit(1); } -static inline int qemu_plugin_load_list(QemuPluginList *head) +static inline int qemu_plugin_load_list(QemuPluginList *head, Error **errp) { return 0; } |