On 12/02/2015 10:12, Pavel Dovgaluk wrote:
>>> > >
>>> > > Replay for audio adapter will be added in latter patches.
>>> > > Trying to record/replay machine with audio using current
>>> > > set of patches will break the replay.
>> > 
>> > For this case you can try adding a mechanism similar to migration
>> > blockers (replay blockers).
> Do you mean adding flag to vmsd similar to unmigratable?

No, see this in migration/migration.c:

static GSList *migration_blockers;

void migrate_add_blocker(Error *reason)
{
    migration_blockers = g_slist_prepend(migration_blockers, reason);
}

void migrate_del_blocker(Error *reason)
{
    migration_blockers = g_slist_remove(migration_blockers, reason);
}

...

    if (migration_blockers) {
        *errp = error_copy(migration_blockers->data);
        return;
    }

Paolo

Reply via email to