On Fri, Jan 13, 2017 at 02:17:19PM +0100, Paolo Bonzini wrote: > This is in preparation for making qio_channel_yield work on > AioContexts other than the main one. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > include/io/channel.h | 30 ++++++++++++++++++++++++++++++ > io/channel-command.c | 13 +++++++++++++ > io/channel-file.c | 11 +++++++++++ > io/channel-socket.c | 16 +++++++++++----- > io/channel-tls.c | 12 ++++++++++++ > io/channel-watch.c | 6 ++++++ > io/channel.c | 11 +++++++++++ > 7 files changed, 94 insertions(+), 5 deletions(-) > > diff --git a/include/io/channel.h b/include/io/channel.h > index 32a9470..665edd7 100644 > --- a/include/io/channel.h > +++ b/include/io/channel.h
> @@ -80,6 +83,9 @@ struct QIOChannel { > Object parent; > unsigned int features; /* bitmask of QIOChannelFeatures */ > char *name; > + AioContext *ctx; > + QIOChannelRestart *read_coroutine; > + QIOChannelRestart *write_coroutine; This hunk belongs in the next patch since its not used here and you also change the data types in the next patch. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|