summaryrefslogtreecommitdiffstats
path: root/migration/yank_functions.h
diff options
context:
space:
mode:
authorPeter Xu2021-07-22 19:58:41 +0200
committerDr. David Alan Gilbert2021-07-26 13:45:03 +0200
commit39675ffffb3394d44b880d083a214c5e44786170 (patch)
treeac3be89aab3c71d61ad772e6c28f7fe523f43ff7 /migration/yank_functions.h
parentmigration: Teach QEMUFile to be QIOChannel-aware (diff)
downloadqemu-39675ffffb3394d44b880d083a214c5e44786170.tar.gz
qemu-39675ffffb3394d44b880d083a214c5e44786170.tar.xz
qemu-39675ffffb3394d44b880d083a214c5e44786170.zip
migration: Move the yank unregister of channel_close out
It's efficient, but hackish to call yank unregister calls in channel_close(), especially it'll be hard to debug when qemu crashed with some yank function leaked. Remove that hack, but instead explicitly unregister yank functions at the places where needed, they are: (on src) - migrate_fd_cleanup - postcopy_pause (on dst) - migration_incoming_state_destroy - postcopy_pause_incoming Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20210722175841.938739-6-peterx@redhat.com> Reviewed-by: Lukas Straub <lukasstraub2@web.de> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/yank_functions.h')
-rw-r--r--migration/yank_functions.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/yank_functions.h b/migration/yank_functions.h
index 74c7f18c91..a7577955ed 100644
--- a/migration/yank_functions.h
+++ b/migration/yank_functions.h
@@ -17,3 +17,4 @@
void migration_yank_iochannel(void *opaque);
void migration_ioc_register_yank(QIOChannel *ioc);
void migration_ioc_unregister_yank(QIOChannel *ioc);
+void migration_ioc_unregister_yank_from_file(QEMUFile *file);