mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
migration: Set migration error outside of migrate_cancel
There's no point passing the error into migration cancel only for it to call migrate_set_error(). Reviewed-by: Peter Xu <peterx@redhat.com> Message-ID: <20250213175927.19642-2-farosas@suse.de> Signed-off-by: Fabiano Rosas <farosas@suse.de>
This commit is contained in:
parent
e0ad300fe1
commit
a47f0cfba8
3 changed files with 6 additions and 7 deletions
|
@ -342,11 +342,8 @@ void migration_bh_schedule(QEMUBHFunc *cb, void *opaque)
|
|||
qemu_bh_schedule(bh);
|
||||
}
|
||||
|
||||
void migration_cancel(const Error *error)
|
||||
void migration_cancel()
|
||||
{
|
||||
if (error) {
|
||||
migrate_set_error(current_migration, error);
|
||||
}
|
||||
if (migrate_dirty_limit()) {
|
||||
qmp_cancel_vcpu_dirty_limit(false, -1, NULL);
|
||||
}
|
||||
|
@ -365,7 +362,7 @@ void migration_shutdown(void)
|
|||
* Cancel the current migration - that will (eventually)
|
||||
* stop the migration using this structure
|
||||
*/
|
||||
migration_cancel(NULL);
|
||||
migration_cancel();
|
||||
object_unref(OBJECT(current_migration));
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue