Re: [PATCH v3 07/10] migration: Replace QemuSemaphore with QemuEvent

2025-05-14 Thread Akihiko Odaki
On 2025/05/14 4:13, Peter Xu wrote: On Sun, May 11, 2025 at 03:08:24PM +0900, Akihiko Odaki wrote: rp_pong_acks tells if it has ever received one pong. QemuEvent is better suited for this usage because it represents a boolean rather than integer and will not decrement with the wait operation.

Re: [PATCH v3 07/10] migration: Replace QemuSemaphore with QemuEvent

2025-05-13 Thread Peter Xu
On Sun, May 11, 2025 at 03:08:24PM +0900, Akihiko Odaki wrote: > rp_pong_acks tells if it has ever received one pong. QemuEvent is > better suited for this usage because it represents a boolean rather > than integer and will not decrement with the wait operation. > > pause_event can utilize qemu_e

[PATCH v3 07/10] migration: Replace QemuSemaphore with QemuEvent

2025-05-10 Thread Akihiko Odaki
rp_pong_acks tells if it has ever received one pong. QemuEvent is better suited for this usage because it represents a boolean rather than integer and will not decrement with the wait operation. pause_event can utilize qemu_event_reset() to discard events. Signed-off-by: Akihiko Odaki --- migra