All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Andrew Baumann <Andrew.Baumann@microsoft.com>
Cc: Igor Mitsyanko <i.mitsyanko@gmail.com>,
	Peter Crosthwaite <crosthwaitepeter@gmail.com>,
	"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 2/3] hw/sd: model a power-up delay, as a workaround for an EDK2 bug
Date: Wed, 23 Dec 2015 19:20:49 +0000	[thread overview]
Message-ID: <CAFEAcA-W0UfnRtTCEG4WgJBMzw0hw=7+mZwPF0xot7dx+2rQQw@mail.gmail.com> (raw)
In-Reply-To: <BLUPR0301MB2034B77FDFAD79B62FA8FF009EE40@BLUPR0301MB2034.namprd03.prod.outlook.com>

On 21 December 2015 at 22:25, Andrew Baumann
<Andrew.Baumann@microsoft.com> wrote:

>> If you change the VMSTATE layout, you need to bump the version. As
>> this is very common code, it may have stricter version bump
>> requirements. Last I knew however, there was a way to add new fields
>> at the end of VMSD without breaking backwards compatibility. Peter or
>> Juan may know more.
>
> I'll admit that I didn't think about these issues when adding the
> fields, but after a (quick) look at vmstate_save_state() and
> vmstate_load_state(), they seem to be using named fields in a json
> format, so I don't think the order of fields should matter if we are
> adding new ones.

The on-the-wire format is not json, and order is important; field
names are not sent.

If we care about migration compatibility I think the recommendation
is to use subsections, rather than marking fields as only existing
in particular versions. (see docs/migration.txt for a discussion
of subsections).

thanks
-- PMM

  parent reply	other threads:[~2015-12-23 19:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-16 19:02 [Qemu-devel] [PATCH v2 0/3] SD emulation fixes for Pi2 Tianocore EDK2 UEFI Andrew Baumann
2015-12-16 19:02 ` [Qemu-devel] [PATCH v2 1/3] hw/sd: implement CMD23 (SET_BLOCK_COUNT) for MMC compatibility Andrew Baumann
2015-12-16 19:02 ` [Qemu-devel] [PATCH v2 2/3] hw/sd: model a power-up delay, as a workaround for an EDK2 bug Andrew Baumann
2015-12-20 22:57   ` Peter Crosthwaite
2015-12-21 21:04     ` Andrew Baumann
2015-12-21 21:43       ` Peter Crosthwaite
2015-12-21 21:46   ` Peter Crosthwaite
2015-12-21 22:25     ` Andrew Baumann
2015-12-21 22:57       ` Peter Crosthwaite
2015-12-23 19:08         ` Andrew Baumann
2015-12-23 19:20       ` Peter Maydell [this message]
2015-12-23 19:37         ` Andrew Baumann
2016-01-25 18:33           ` Peter Maydell
2015-12-16 19:02 ` [Qemu-devel] [PATCH v2 3/3] hw/sd: use guest error logging rather than fprintf to stderr Andrew Baumann
2015-12-20 23:02   ` Peter Crosthwaite
2016-01-25 13:56 ` [Qemu-devel] [PATCH v2 0/3] SD emulation fixes for Pi2 Tianocore EDK2 UEFI Peter Maydell
2016-01-25 18:06   ` Andrew Baumann
2016-01-25 18:36     ` Peter Maydell
2016-02-01 22:17       ` Andrew Baumann

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='CAFEAcA-W0UfnRtTCEG4WgJBMzw0hw=7+mZwPF0xot7dx+2rQQw@mail.gmail.com' \
    --to=peter.maydell@linaro.org \
    --cc=Andrew.Baumann@microsoft.com \
    --cc=crosthwaitepeter@gmail.com \
    --cc=i.mitsyanko@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=stefanha@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 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.