aboutsummaryrefslogtreecommitdiff
path: root/softmmu/vl.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-27 04:58:26 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-15 12:51:56 -0500
commit0572f558cbc45acdd13ae3548c06ce650641f292 (patch)
treeccd1abeef475cb312a2647916ad833ec59ea2640 /softmmu/vl.c
parentf2ce39b4f067fe8b8de6104a2d8ac558d35c330b (diff)
downloadqemu-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 'softmmu/vl.c')
-rw-r--r--softmmu/vl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/softmmu/vl.c b/softmmu/vl.c
index 0f7222a..553482e 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -2416,9 +2416,7 @@ static void qemu_init_board(void)
}
/* process plugin before CPUs are created, but once -smp has been parsed */
- if (qemu_plugin_load_list(&plugin_list)) {
- exit(1);
- }
+ qemu_plugin_load_list(&plugin_list, &error_fatal);
/* From here on we enter MACHINE_PHASE_INITIALIZED. */
machine_run_board_init(current_machine);