diff --git a/plugins/qemu-plugins.symbols b/plugins/qemu-plugins.symbols index f633ec73f38d..a900baf55dce 100644 --- a/plugins/qemu-plugins.symbols +++ b/plugins/qemu-plugins.symbols @@ -44,4 +44,5 @@ qemu_plugin_vcpu_for_each; qemu_plugin_pa_by_va; qemu_plugin_read_cr3; + qemu_plugin_vm_shutdown; }; diff --git a/tests/plugin/execlog.c b/tests/plugin/execlog.c index 4d0c0ee62248..7781b0ca307f 100644 --- a/tests/plugin/execlog.c +++ b/tests/plugin/execlog.c @@ -348,8 +348,7 @@ static void do_ins_counting(void) /* There could be more elegant way to shut this down, but I didn't yet figure out. */ /* If you want to do so, find qemu_plugin_vm_shutdown impl in plugins/api.c */ - instant_suicide(); - // qemu_plugin_vm_shutdown (); + qemu_plugin_vm_shutdown (); } } @@ -618,7 +617,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *p) { printf("[Sim Plugin] Closed binary log filexxxxxx\n"); close_bin_record(); - instant_suicide(); + qemu_plugin_vm_shutdown(); } // static void plugin_exit(qemu_plugin_id_t id, unsigned int vcpu_index)