Re: [PATCH 4/5] migration: Fix rare hang of migration_channel_read_peek()

Peter Xu <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <[email protected]>
On Tue, Jul 28, 2026 at 06:00:50PM -0300, Fabiano Rosas wrote:
> If I'm not mistaken the watch only dispatches when there's IO.

Listening sockets are registered with:

        socket_connect_incoming ->
        qio_net_listener_set_client_func_full ->
        qio_net_listener_set_client_func_internal ->
        qio_net_listener_watch

So the watcher is on the listening socket, not IO socket.

qio_net_listener_channel_func() will accept() and create the IO socket,
then it does the callback to socket_accept_incoming_migration() on the IO
socket just created.

-- 
Peter Xu
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.