OSDN Git Service

plugin: propagate errors
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Oct 2020 08:58:26 +0000 (04:58 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:51:56 +0000 (12:51 -0500)
commit0572f558cbc45acdd13ae3548c06ce650641f292
treeccd1abeef475cb312a2647916ad833ec59ea2640
parentf2ce39b4f067fe8b8de6104a2d8ac558d35c330b
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>
include/qemu/plugin.h
linux-user/main.c
plugins/loader.c
softmmu/vl.c