From: Amit Shah <amit.shah@redhat.com>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: Alexander Graf <agraf@suse.de>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] vmstate: struct (VMS_STRUCT) migration
Date: Thu, 3 Jul 2014 13:52:15 +0530 [thread overview]
Message-ID: <20140703082215.GA23755@grmbl.mre> (raw)
In-Reply-To: <53AA6E0B.60103@ozlabs.ru>
On (Wed) 25 Jun 2014 [16:36:59], Alexey Kardashevskiy wrote:
> Hi!
>
> VMStateDescription supports enclosed VMStateDescription's via .vmsd. This
> is used in multiple places and VMStateDescription definitions look the same
> way - name, version_id, minimum_version_id, etc.
>
> QEMU handles first level VMStateDescription and enclosed VMStateDescription
> slightly different - for the latter it ignores the version_id from the
> source and always uses the version_id on the destination side so version
> fields are useless (code is below).
>
> Is that by design? Or a bug? I cannot see how we could fix it without
> breaking backward compatibility but I am sure the community does know that :)
>
> If this is by design, it probably makes sense to remove unused
> version_id/minimum_version_id fields completely for vmsd's which we know
> are enclosed (or embedded?).
>
> What do I miss here? Thanks!
No, you're not missing anything. It's indeed a bug that crept in the
original implementation.
We discussed this detail during the KVM Forum 2013; and since we
anyway do need a new on-wire format, the one that will fix all bugs
(TM), this will be taken care of too...
You can see the slides / videos from mine and Alex Graf's
presentations.
The recommendation, for now, is to bump up the version field of the
parent vmsd when updating a substruct. But obviously, this can be
easily missed. The static checker just merged in the qemu tree does
catch these types of errors.
In the meanwhile, what you propose does make sense: getting rid of the
version_id and minimum_version_id fields in substructs.
Amit
prev parent reply other threads:[~2014-07-03 8:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-25 6:36 [Qemu-devel] vmstate: struct (VMS_STRUCT) migration Alexey Kardashevskiy
2014-07-02 14:04 ` Alexey Kardashevskiy
2014-07-02 14:11 ` Peter Maydell
2014-07-03 8:22 ` Amit Shah [this message]
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=20140703082215.GA23755@grmbl.mre \
--to=amit.shah@redhat.com \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=dgilbert@redhat.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).