On Thu, Mar 05, 2026 at 10:24:53PM +0800, Zhang Chen wrote: > @@ -1434,11 +1436,17 @@ static void colo_compare_finalize(Object *obj) > > qemu_bh_delete(s->event_bh); > > - AioContext *ctx = iothread_get_aio_context(s->iothread); > + /* > + * Use the device's canonical path as the holder ID to track IOThread > + * usage and ensure the AioContext remains valid during the device's > + * lifecycle. > + */ > + AioContext *ctx = iothread_get_aio_context(s->iothread, NULL);
Should NULL be path?
> AIO_WAIT_WHILE(ctx, !s->out_sendco.done);
> if (s->notify_dev) {
> AIO_WAIT_WHILE(ctx, !s->notify_sendco.done);
> }
> + iothread_put_aio_context(s->iothread, path);
signature.asc
Description: PGP signature
