We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 882f5b1 commit f455492Copy full SHA for f455492
plugins/core.c
@@ -514,9 +514,10 @@ void qemu_plugin_user_exit(void)
514
/* un-register all callbacks except the final AT_EXIT one */
515
for (ev = 0; ev < QEMU_PLUGIN_EV_MAX; ev++) {
516
if (ev != QEMU_PLUGIN_EV_ATEXIT) {
517
- struct qemu_plugin_ctx *ctx;
518
- QTAILQ_FOREACH(ctx, &plugin.ctxs, entry) {
519
- plugin_unregister_cb__locked(ctx, ev);
+ struct qemu_plugin_cb *cb, *next;
+
+ QLIST_FOREACH_SAFE_RCU(cb, &plugin.cb_lists[ev], entry, next) {
520
+ plugin_unregister_cb__locked(cb->ctx, ev);
521
}
522
523
0 commit comments