All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Alexandr Moshkov <dtalexundeer@yandex-team.ru>,
	qemu-devel@nongnu.org,
	"yc-core@yandex-team.ru" <yc-core@yandex-team.ru>,
	Fabiano Rosas <farosas@suse.de>
Subject: Re: [PATCH v2] vmstate: fix subsection load name check
Date: Thu, 12 Mar 2026 11:34:22 -0400	[thread overview]
Message-ID: <abLc_ppEEbKjNRUi@x1.local> (raw)
In-Reply-To: <a6dafc1e-79d1-4380-a4da-7cbc4ff77ae4@yandex-team.ru>

On Thu, Mar 12, 2026 at 09:30:35AM +0300, Vladimir Sementsov-Ogievskiy wrote:
> You say
> 
> > .. always pop the VMSD stack then the upper layer may read the SUBSECTION byte anywhere.
> 
> But it actually can be anything. Of course probability is small that some another state
> looks like QEMU_VM_SUBSECTION + <existing subsection name>, but we don't have actual
> guarantee for it in the protocol.
> 
> Probably, we may also add a protocol change (with some global state property,
> set to true in new MT) to add a number of subsections into section state, to be
> sure how many of them we have in the stream.

Yes, I believe it's always possible to change the streaming protocol to
make it even clearer.  Actually, that's what I was picturing before I read
your previous reply.

For doing that, I wonder if we should just fix "this specific problem" or
"the bigger problem".

The bigger problem here, at least to me, is migration streaming lacks level
information - virtio can wrongly treat that piece of info as its own
subsection only because the stream doesn't tell which level it's in..
It's a common issue for migration stream, so I wonder if we need to break
the streaming protocol then whether we should do even further than that.

That is the part where I think what you suggested in the previous email may
be the easy way to go (plus, removing the name check completely).

But let me double check with you on one thing: before any fix, this problem
will happen even during a migration between two latest QEMU that supports
that new subsection of virtio-blk, am I right?

I am curious why this problem is only reported until today, rather than
when the new subsection was developed.  I wonder if I still miss something
that I didn't notice..

-- 
Peter Xu



  reply	other threads:[~2026-03-12 15:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-02  7:06 [PATCH v2] vmstate: fix subsection load name check Alexandr Moshkov
2026-03-02 17:36 ` Peter Xu
2026-03-06 13:46 ` Fabiano Rosas
2026-03-10  5:32   ` Alexandr Moshkov
2026-03-10 13:27     ` Alexandr Moshkov
2026-03-10 13:39       ` Peter Maydell
2026-03-10 18:00         ` Peter Xu
2026-03-11  6:53           ` Vladimir Sementsov-Ogievskiy
2026-03-11 15:05             ` Peter Xu
2026-03-12  6:30               ` Vladimir Sementsov-Ogievskiy
2026-03-12 15:34                 ` Peter Xu [this message]
2026-03-12 16:34                   ` Vladimir Sementsov-Ogievskiy
2026-03-12 18:13                     ` Peter Xu
2026-03-12 18:27                       ` Peter Maydell
2026-03-12 19:25                         ` 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=abLc_ppEEbKjNRUi@x1.local \
    --to=peterx@redhat.com \
    --cc=dtalexundeer@yandex-team.ru \
    --cc=farosas@suse.de \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=vsementsov@yandex-team.ru \
    --cc=yc-core@yandex-team.ru \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.