From: Peter Xu <peterx@redhat.com>
To: "manish.mishra" <manish.mishra@nutanix.com>
Cc: qemu-devel@nongnu.org, berrange@redhat.com,
prerna.saxena@nutanix.com, quintela@redhat.com,
dgilbert@redhat.com, lsoaresp@redhat.com
Subject: Re: [PATCH v3 2/2] migration: check magic value for deciding the mapping of channels
Date: Mon, 21 Nov 2022 16:59:56 -0500 [thread overview]
Message-ID: <Y3v03M/7/imLADUG@x1n> (raw)
In-Reply-To: <20221119093615.158072-5-manish.mishra@nutanix.com>
On Sat, Nov 19, 2022 at 09:36:15AM +0000, manish.mishra wrote:
> Current logic assumes that channel connections on the destination side are
> always established in the same order as the source and the first one will
> always be the main channel followed by the multifid or post-copy
> preemption channel. This may not be always true, as even if a channel has a
> connection established on the source side it can be in the pending state on
> the destination side and a newer connection can be established first.
> Basically causing out of order mapping of channels on the destination side.
> Currently, all channels except post-copy preempt send a magic number, this
> patch uses that magic number to decide the type of channel. This logic is
> applicable only for precopy(multifd) live migration, as mentioned, the
> post-copy preempt channel does not send any magic number. Also, tls live
> migrations already does tls handshake before creating other channels, so
> this issue is not possible with tls, hence this logic is avoided for tls
> live migrations. This patch uses read peek to check the magic number of
> channels so that current data/control stream management remains
> un-effected.
>
> Suggested-by: Daniel P. Berrangé <berrange@redhat.com
> Signed-off-by: manish.mishra <manish.mishra@nutanix.com>
Acked-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
next prev parent reply other threads:[~2022-11-21 22:00 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 9:36 [PATCH 1/2] io: Add support for MSG_PEEK for socket channel manish.mishra
2022-11-19 9:36 ` [PATCH 2/2] migration: check magic value for deciding the mapping of channels manish.mishra
2022-11-19 9:36 ` manish.mishra
2022-11-19 9:36 ` [PATCH v3 1/2] io: Add support for MSG_PEEK for socket channel manish.mishra
2022-11-22 9:00 ` Daniel P. Berrangé
2022-11-22 9:08 ` manish.mishra
2022-11-22 9:29 ` Daniel P. Berrangé
2022-11-22 9:40 ` manish.mishra
2022-11-22 9:53 ` Daniel P. Berrangé
2022-11-22 10:13 ` manish.mishra
2022-11-22 10:31 ` Daniel P. Berrangé
2022-11-22 14:41 ` Peter Xu
2022-11-22 14:49 ` Daniel P. Berrangé
2022-11-22 15:31 ` manish.mishra
2022-11-22 16:10 ` Peter Xu
2022-11-22 16:29 ` Peter Xu
2022-11-22 16:33 ` Peter Xu
2022-11-22 16:42 ` manish.mishra
2022-11-22 17:16 ` Peter Xu
2022-11-22 17:31 ` Daniel P. Berrangé
2022-11-19 9:36 ` [PATCH v3 2/2] migration: check magic value for deciding the mapping of channels manish.mishra
2022-11-21 21:59 ` Peter Xu [this message]
2022-11-22 9:01 ` Daniel P. Berrangé
2022-11-19 9:40 ` [PATCH 1/2] io: Add support for MSG_PEEK for socket channel manish.mishra
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=Y3v03M/7/imLADUG@x1n \
--to=peterx@redhat.com \
--cc=berrange@redhat.com \
--cc=dgilbert@redhat.com \
--cc=lsoaresp@redhat.com \
--cc=manish.mishra@nutanix.com \
--cc=prerna.saxena@nutanix.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.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).