summaryrefslogtreecommitdiffstats
path: root/include/qemu
diff options
context:
space:
mode:
authorPaolo Bonzini2020-10-27 09:58:26 +0100
committerPaolo Bonzini2020-12-15 18:51:56 +0100
commit0572f558cbc45acdd13ae3548c06ce650641f292 (patch)
treeccd1abeef475cb312a2647916ad833ec59ea2640 /include/qemu
parentvl: make qemu_get_machine_opts static (diff)
downloadqemu-0572f558cbc45acdd13ae3548c06ce650641f292.tar.gz
qemu-0572f558cbc45acdd13ae3548c06ce650641f292.tar.xz
qemu-0572f558cbc45acdd13ae3548c06ce650641f292.zip
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/qemu')
-rw-r--r--include/qemu/plugin.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qemu/plugin.h b/include/qemu/plugin.h
index ab790ad105..841deed79c 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;
}