[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1] migration: fail the cap check if it requires the use of d
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming |
Date: |
Fri, 19 May 2023 09:26:23 +0100 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
On Thu, May 18, 2023 at 03:20:02PM -0400, Peter Xu wrote:
> On Fri, May 19, 2023 at 12:00:26AM +0800, Wei Wang wrote:
> > qemu_start_incoming_migration needs to check the number of multifd
> > channels or postcopy ram channels to configure the backlog parameter (i.e.
> > the maximum length to which the queue of pending connections for sockfd
> > may grow) of listen(). So multifd and postcopy-preempt caps require the
> > use of deferred incoming, that is, calling qemu_start_incoming_migration
> > should be deferred via qmp or hmp commands after the cap of multifd and
> > postcopy-preempt are configured.
> >
> > Check if deferred incoming is used when enabling multifd or
> > postcopy-preempt, and fail the check with error messages if not.
> >
> > Signed-off-by: Wei Wang <wei.w.wang@intel.com>
>
> IIUC this will unfortunately break things like:
>
> -global migration.x-postcopy-preempt=on
>
> where the cap is actually applied before incoming starts even with !defer
> so it should still work.
>
> Can we just make socket_start_incoming_migration_internal() listen on a
> static but larger value?
Why do we need todo that ? I thought we just determined the problem was
a configuration error, not a code error.
With 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 :|
- RE: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, (continued)
- RE: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Wang, Wei W, 2023/05/18
- Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Peter Xu, 2023/05/19
- Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Peter Xu, 2023/05/19
- RE: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Wang, Wei W, 2023/05/19
- Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Peter Xu, 2023/05/22
- RE: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Wang, Wei W, 2023/05/22
- Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Peter Xu, 2023/05/23
- RE: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Wang, Wei W, 2023/05/23
- Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Peter Xu, 2023/05/23
- RE: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming, Wang, Wei W, 2023/05/23
Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming,
Daniel P . Berrangé <=