aboutsummaryrefslogtreecommitdiff
path: root/linux-user/main.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 /linux-user/main.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 'linux-user/main.c')
-rw-r--r--linux-user/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 24d1eb7..750a011 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -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));