From: Peter Xu <peterx@redhat.com>
To: "Wang, Wei W" <wei.w.wang@intel.com>
Cc: "quintela@redhat.com" <quintela@redhat.com>,
"Wang, Lei4" <lei4.wang@intel.com>,
"berrange@redhat.com" <berrange@redhat.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming
Date: Fri, 19 May 2023 11:33:49 -0400 [thread overview]
Message-ID: <ZGeW3R5McptUueJF@x1n> (raw)
In-Reply-To: <ZGeWF4lzBldLLH/y@x1n>
On Fri, May 19, 2023 at 11:30:31AM -0400, Peter Xu wrote:
> On Fri, May 19, 2023 at 02:34:57AM +0000, Wang, Wei W wrote:
> > On Friday, May 19, 2023 3:20 AM, 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.
> >
> > Actually the patch doesn’t check "!defer". It just checks if incoming has been started
> > or not. It allows the 2 caps to be set only before incoming starts. So I think the above
> > should work.
>
> Ah yes indeed it keeps working, because we apply -global bits before setup
> sockets. Then it's fine by me since that's the only thing I would still
> like to keep it working. :)
>
> If so, can we reword the error message a bit? Obviously as you said we're
> not really checking against -defer, but established channels. The problem
> is if something is established without knowing multifd being there it may
> not work for multifd or preempt, not strictly about defer.
>
> How about:
>
> "Multifd/Preempt-Mode cannot be modified if incoming channel has setup"
>
> ?
We may also want to trap the channel setups on num:
migrate_params_test_apply():
if (params->has_multifd_channels) {
dest->multifd_channels = params->multifd_channels;
}
--
Peter Xu
next prev parent reply other threads:[~2023-05-19 15:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-18 16:00 [PATCH v1] migration: fail the cap check if it requires the use of deferred incoming Wei Wang
2023-05-18 19:20 ` Peter Xu
2023-05-19 2:34 ` Wang, Wei W
2023-05-19 15:30 ` Peter Xu
2023-05-19 15:33 ` Peter Xu [this message]
2023-05-20 1:42 ` Wang, Wei W
2023-05-22 23:36 ` Peter Xu
2023-05-23 1:44 ` Wang, Wei W
2023-05-23 13:40 ` Peter Xu
2023-05-23 14:30 ` Wang, Wei W
2023-05-23 14:50 ` Peter Xu
2023-05-24 1:47 ` Wang, Wei W
2023-05-19 8:26 ` Daniel P. Berrangé
2023-05-19 15:31 ` Peter Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZGeW3R5McptUueJF@x1n \
--to=peterx@redhat.com \
--cc=berrange@redhat.com \
--cc=lei4.wang@intel.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=wei.w.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).