]> git.ipfire.org Git - thirdparty/qemu.git/commit
io: Add qio_channel_wait_cond() helper
authorPeter Xu <peterx@redhat.com>
Wed, 22 Oct 2025 19:26:00 +0000 (15:26 -0400)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:10 +0000 (16:04 -0500)
commit1edf0df28409cdf637e5f5ebba515fc63ed4926f
tree2cbc543038f7e44a652b7fe4026f9076aaee977f
parent5777e20718c6e7088b3e1488857b7d7905c36980
io: Add qio_channel_wait_cond() helper

Add the helper to wait for QIO channel's IO availability in any
context (coroutine, or non-coroutine).  Use it tree-wide for three
occurences.

Cc: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Link: https://lore.kernel.org/r/20251022192612.2737648-2-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
include/io/channel.h
io/channel.c
migration/qemu-file.c