[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 03/17] qio: Create new qio_channel_{readv, wr
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH v5 03/17] qio: Create new qio_channel_{readv, writev}_all |
Date: |
Wed, 19 Jul 2017 17:08:11 +0100 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
On Wed, Jul 19, 2017 at 05:04:19PM +0100, Dr. David Alan Gilbert wrote:
> * Daniel P. Berrange (address@hidden) wrote:
> > On Wed, Jul 19, 2017 at 04:42:09PM +0100, Dr. David Alan Gilbert wrote:
> > > * Juan Quintela (address@hidden) wrote:
> > > > The functions waits until it is able to write the full iov.
> > >
> > > When is it safe to call these - I see qio_channel_wait does it's
> > > own g_main_loop - so I guess they're intended to be called from their
> > > own process?
> > >
> > > What causes these to exit if the migration fails for some other
> > > (non-file) related reason?
> >
> > It'll exit if the other end closes the socket, or if the local QEMU
> > does a qio_channel_close() on it. I don't know if this patch series
> > uses either of those options tough.
>
> How do you safely cope with calling close on a socket that's currently
> being waited on/might be reading? In the cancel case we use shutdown()
> to force exits with out actually closing.
You can use qio_channel_shutdown() instead if that's desired
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [Qemu-devel] [PATCH v5 00/17] Multifd, Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 02/17] migration: Create migration_ioc_process_incoming(), Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 01/17] migrate: Add gboolean return type to migrate_channel_process_incoming, Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 03/17] qio: Create new qio_channel_{readv, writev}_all, Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 04/17] migration: Add multifd capability, Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 05/17] migration: Create x-multifd-threads parameter, Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 06/17] migration: Create x-multifd-group parameter, Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 07/17] migration: Create multifd migration threads, Juan Quintela, 2017/07/17
- [Qemu-devel] [PATCH v5 08/17] migration: Split migration_fd_process_incomming, Juan Quintela, 2017/07/17