Re: [PATCH 7/9] migration: Remember num of ramblocks to sync during recovery

2023-09-11 Thread Fabiano Rosas
Peter Xu writes: > Instead of only relying on the count of rp_sem, make the counter be part of > RAMState so it can be used in both threads to synchronize on the process. > > rp_sem will be further reused as a way to kick the main thread, e.g., on > recovery failures. > > Signed-off-by: Peter Xu

[PATCH 7/9] migration: Remember num of ramblocks to sync during recovery

2023-08-29 Thread Peter Xu
Instead of only relying on the count of rp_sem, make the counter be part of RAMState so it can be used in both threads to synchronize on the process. rp_sem will be further reused as a way to kick the main thread, e.g., on recovery failures. Signed-off-by: Peter Xu --- migration/ram.c | 17