]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Properly wait on G_IO_IN when peeking messages
authorPeter Xu <peterx@redhat.com>
Wed, 22 Oct 2025 19:26:01 +0000 (15:26 -0400)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:10 +0000 (16:04 -0500)
commit604bb1badcade5f49264cf8901c2f3a528df305a
tree4892c842e939de17d7490b40b5b2cae07865c8b0
parent1edf0df28409cdf637e5f5ebba515fc63ed4926f
migration: Properly wait on G_IO_IN when peeking messages

migration_channel_read_peek() used to do explicit waits of a short period
when peeking message needs retry.  Replace it with explicit polls on the io
channel, exactly like what qemu_fill_buffer() does.

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-3-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/channel.c