• J
    libxl: MigrateBegin: Dont call EndAPI in helper function · 64370c4b
    Jim Fehlig 提交于
    The libxlDomainMigrateBegin3Params API locks and ref counts the associated
    virDomainObj but relies on the helper function libxlDomainMigrationBegin
    to unref/unlock the object. libxlDomainMigrationBegin is also used by
    libxlDomainMigratePerform3Params for p2p migration, but in that case the
    lock/ref and unref/unlock are properly handled in the API entry point. So
    p2p migrations suffer a double unref/unlock in the Perform API.
    
    Remove the unref/unlock (virDomainObjEndAPI) from libxlDomainMigrationBegin
    and adjust libxlDomainMigrateBegin3Params to properly unref/unlock
    the virDomainObj on success and error paths.
    Signed-off-by: NJim Fehlig <jfehlig@suse.com>
    Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
    64370c4b
libxl_migration.c 41.3 KB