qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: quintela@redhat.com
Cc: patches@linaro.org, "Bahadir Balban" <bbalban@b-labs.com>,
	qemu-devel@nongnu.org, "Amit Mahajan" <amit.mahajan@b-labs.com>,
	"Dawid Ciężarkiewicz" <dawidc@b-labs.com>
Subject: [Qemu-devel] Re: [PATCH 1/2] hw/arm_sysctl.c: Add the Versatile Express system registers
Date: Tue, 1 Mar 2011 13:53:46 +0000	[thread overview]
Message-ID: <AANLkTimL4GzyOnKKRfE81Hh5NFoq03LWST2Lkvb7D-M9@mail.gmail.com> (raw)
In-Reply-To: <m3pqqbdkoo.fsf@trasno.org>

2011/3/1 Juan Quintela <quintela@redhat.com>:
> Peter Maydell <peter.maydell@linaro.org> wrote:
>
> Hi
>
>> @@ -41,6 +44,9 @@ static const VMStateDescription vmstate_arm_sysctl = {
>>          VMSTATE_UINT32(flags, arm_sysctl_state),
>>          VMSTATE_UINT32(nvflags, arm_sysctl_state),
>>          VMSTATE_UINT32(resetlevel, arm_sysctl_state),
>> +        VMSTATE_UINT32(sys_cfgdata, arm_sysctl_state),
>> +        VMSTATE_UINT32(sys_cfgctrl, arm_sysctl_state),
>> +        VMSTATE_UINT32(sys_cfgstat, arm_sysctl_state),
>>          VMSTATE_END_OF_LIST()
>>      }
>>  };
>
> Three options (about migration):
> - left things as they are and become incompatible without changing versions
> - if you don't care about backward compatibility, just add +1 to all the
>  version fields and you are done.
> - add this fields only for the new version.
>
> IMHO 1st one is the worse option.  I will go with the middle one (as far
> as I know, nobody on arm uses interversion migration (as far as I know,
> nobody uses migration at all).

OK, so in:
static const VMStateDescription vmstate_arm_sysctl = {
    .name = "realview_sysctl",
    .version_id = 1,
    .minimum_version_id = 1,

I just bump the '1' in both cases to '2' ?

I've only ever used the save/restore for debugging purposes.
We know for certain that nobody can have been doing migration
with versatile platforms before this year, because we only
added save/load support to arm_sysctl.c in December 2010 :-)

(What's the equivalent version-bump that needs to be done
when entries are added to target-arm/machine.c's save and
restore code?)

thanks
-- PMM

  reply	other threads:[~2011-03-01 13:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 12:32 [Qemu-devel] [PATCH 0/2] ARM: Add Versatile Express board model Peter Maydell
2011-03-01 12:32 ` [Qemu-devel] [PATCH 1/2] hw/arm_sysctl.c: Add the Versatile Express system registers Peter Maydell
2011-03-01 13:39   ` [Qemu-devel] " Juan Quintela
2011-03-01 13:53     ` Peter Maydell [this message]
2011-03-01 12:32 ` [Qemu-devel] [PATCH 2/2] hw/vexpress.c: Add model of ARM Versatile Express board Peter Maydell
2011-03-01 14:48 ` [Qemu-devel] Re: [PATCH 0/2] ARM: Add Versatile Express board model Amit Mahajan

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=AANLkTimL4GzyOnKKRfE81Hh5NFoq03LWST2Lkvb7D-M9@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=amit.mahajan@b-labs.com \
    --cc=bbalban@b-labs.com \
    --cc=dawidc@b-labs.com \
    --cc=patches@linaro.org \
    --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).