On Mon, Sep 22, 2025 at 02:40:37PM -0300, Fabiano Rosas wrote:
> A while ago we wrapped QEMU BHs with migration_bh_dispatch_bh. The BHs
> don't need to hold or drop MigrationState reference anymore because the
> dispatch callback does it:
> 
> void migration_bh_schedule(QEMUBHFunc *cb, void *opaque)
> {
>     ...
>     object_ref(OBJECT(s));
>     qemu_bh_schedule(bh);
> }
> 
> static void migration_bh_dispatch_bh(void *opaque)
> {
>     ...        
>     migbh->cb(migbh->opaque);
>     object_unref(OBJECT(s));
>     ...
> }

Indeed!  Ignore my comment.. :)

-- 
Peter Xu


Reply via email to