Skip to content

migration/postcopy: replace have_listen_thread check with PostcopyState check

Wei Yang qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3migration/postcopy: mis->have_listen_thread check will never be touchedmigration/savevm.c+0 -51 reply
2/3migration/postcopy: postpone setting PostcopyState to ENDmigration/postcopy-ram.c migration/savevm.c+2 -21 reply
3/3migration/postcopy: replace have_listen_thread check with PostcopyState checkmigration/migration.h migration/ram.c migration/ram.h +1 more+3 -54 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDr. David Alan Gilbert
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] migration/postcopy: replace have_listen_thread check with PostcopyState check

have_listen_thread is used to be a indication of whether postcopy thread is running. Since we use PostcopyState to record state and the postcopy thread only runs when postcopy_is_running(), we can leverage the PostcopyState to replace the meaning of have_listen_thread.

To do so, two preparation cleanup is included.

Wei Yang (3):
migration/postcopy: mis->have_listen_thread check will never be
touched
migration/postcopy: postpone setting PostcopyState to END migration/postcopy: replace have_listen_thread check with
PostcopyState check

 migration/migration.h    |  1 -
 migration/postcopy-ram.c |  2 --
 migration/ram.c          |  2 +-
 migration/ram.h          |  1 +
 migration/savevm.c       | 11 +++--------
 5 files changed, 5 insertions(+), 12 deletions(-)
Signature · 1 line
2.17.1