[Spice-devel] [PATCH spice-gtk 06/13] migration: set connecting state before fd request

Marc-André Lureau marcandre.lureau at gmail.com
Fri Nov 14 03:06:30 PST 2014


On Fri, Nov 14, 2014 at 10:59 AM, Christophe Fergeau <cfergeau at redhat.com>
wrote:

> Hmm I only partially understood what your log meant, and tried to
> improve it, but it's very partial. I think it's better to be explicit
> about main context/coroutine context here, maybe something like
>
> "During migration, the main channel initiating the process is waiting
> in the main context for connection completion.
> It's migrate_channel_event_cb() which is expected to yield back to the
> main context once all channels have completed connection"
>

Not quite exact, migrate_channel_event_cb() is a signal handler, it
is in the main coroutine, and it yields back to the
coroutine which initiated the migration (the waiting main channel).

What about?

"During migration, the main channel coroutine initiating the process is
waiting
for connection completion of all channels. migrate_channel_event_cb() yields
back to the main channel coroutine once all channels have completed
connection,
or it will abort migration for unexpected channel events, such as
SPICE_CHANNEL_CLOSED"


-- 
Marc-André Lureau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141114/d89001e6/attachment.html>


More information about the Spice-devel mailing list