aboutsummaryrefslogtreecommitdiff
path: root/migration/migration.h
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2021-09-29 16:43:10 +0200
committerJuan Quintela <quintela@trasno.org>2021-11-03 09:38:53 +0100
commit458fecca80963b4c2c2164889d817542d2cece4f (patch)
tree0160e8b19e85842063eeb930216d516cecd08560 /migration/migration.h
parent741bdeb1d5a4024a2c54c6abb2de493a27b61953 (diff)
downloadqemu-458fecca80963b4c2c2164889d817542d2cece4f.zip
qemu-458fecca80963b4c2c2164889d817542d2cece4f.tar.gz
qemu-458fecca80963b4c2c2164889d817542d2cece4f.tar.bz2
migration: provide an error message to migration_cancel()
This avoids to call migrate_get_current() in the caller function whereas migration_cancel() already needs the pointer to the current migration state. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r--migration/migration.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/migration.h b/migration/migration.h
index 7a5aa8c..8130b70 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -388,7 +388,7 @@ int foreach_not_ignored_block(RAMBlockIterFunc func, void *opaque);
void migration_make_urgent_request(void);
void migration_consume_urgent_request(void);
bool migration_rate_limit(void);
-void migration_cancel(void);
+void migration_cancel(const Error *error);
void populate_vfio_info(MigrationInfo *info);