qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/8] Fix segfault on migration return path
@ 2023-08-31 18:39 Fabiano Rosas
  2023-08-31 18:39 ` [PATCH v5 1/8] migration: Fix possible race when setting rp_state.error Fabiano Rosas
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Fabiano Rosas @ 2023-08-31 18:39 UTC (permalink / raw)
  To: qemu-devel; +Cc: Juan Quintela, Peter Xu, Wei Wang

What was left from v4 was to figure out how to pair the yank
register/unregister for the QEMUFiles.

I noticed that we don't really need to call unregister_yank under the
lock. We just need to make sure the pointer is still valid. So I went
with Peter's first suggestion which was to call the function
individually for the QIOChannels we know yank is registered.

CI run: https://gitlab.com/farosas/qemu/-/pipelines/988224440

v4:
https://lore.kernel.org/r/20230816142510.5637-1-farosas@suse.de
v3:
https://lore.kernel.org/r/20230811150836.2895-1-farosas@suse.de
v2:
https://lore.kernel.org/r/20230802143644.7534-1-farosas@suse.de
v1:
https://lore.kernel.org/r/20230728121516.16258-1-farosas@suse.de

Fabiano Rosas (8):
  migration: Fix possible race when setting rp_state.error
  migration: Fix possible races when shutting down the return path
  migration: Fix possible race when shutting down to_dst_file
  migration: Remove redundant cleanup of postcopy_qemufile_src
  migration: Consolidate return path closing code
  migration: Replace the return path retry logic
  migration: Move return path cleanup to main migration thread
  migration: Add a wrapper to cleanup migration files

 migration/migration.c      | 231 +++++++++++++------------------------
 migration/migration.h      |   1 -
 migration/yank_functions.c |   5 +
 3 files changed, 88 insertions(+), 149 deletions(-)

-- 
2.35.3



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-09-05 17:26 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31 18:39 [PATCH v5 0/8] Fix segfault on migration return path Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 1/8] migration: Fix possible race when setting rp_state.error Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 2/8] migration: Fix possible races when shutting down the return path Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 3/8] migration: Fix possible race when shutting down to_dst_file Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 4/8] migration: Remove redundant cleanup of postcopy_qemufile_src Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 5/8] migration: Consolidate return path closing code Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 6/8] migration: Replace the return path retry logic Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 7/8] migration: Move return path cleanup to main migration thread Fabiano Rosas
2023-08-31 18:39 ` [PATCH v5 8/8] migration: Add a wrapper to cleanup migration files Fabiano Rosas
2023-09-01 16:05   ` Peter Xu
2023-09-01 18:29     ` Fabiano Rosas
2023-09-05 15:34       ` Peter Xu
2023-09-05 17:25         ` Fabiano Rosas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).