From 39675ffffb3394d44b880d083a214c5e44786170 Mon Sep 17 00:00:00 2001 From: Peter Xu Date: Thu, 22 Jul 2021 13:58:41 -0400 Subject: 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 Message-Id: <20210722175841.938739-6-peterx@redhat.com> Reviewed-by: Lukas Straub Signed-off-by: Dr. David Alan Gilbert --- migration/yank_functions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'migration/yank_functions.h') diff --git a/migration/yank_functions.h b/migration/yank_functions.h index 74c7f18..a757795 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); -- cgit v1.1