All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: patches@linaro.org, Dawid@gnu.org, qemu-devel@nongnu.org,
	"Amit Mahajan" <amit.mahajan@b-labs.com>,
	Ciężarkiewicz <dawidc@b-labs.com>,
	"Bahadir Balban" <bbalban@b-labs.com>
Subject: [Qemu-devel] Re: [PATCH 1/2] hw/arm_sysctl.c: Add the Versatile Express system registers
Date: Tue, 01 Mar 2011 14:39:19 +0100	[thread overview]
Message-ID: <m3pqqbdkoo.fsf@trasno.org> (raw)
In-Reply-To: <1298982742-31154-2-git-send-email-peter.maydell@linaro.org> (Peter Maydell's message of "Tue, 1 Mar 2011 12:32:21 +0000")

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).

If you (or anybody else does), a pointer to one setup that is known to
work is welcome.

Later, Juan.

  reply	other threads:[~2011-03-01 13:41 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   ` Juan Quintela [this message]
2011-03-01 13:53     ` [Qemu-devel] " Peter Maydell
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=m3pqqbdkoo.fsf@trasno.org \
    --to=quintela@redhat.com \
    --cc=Dawid@gnu.org \
    --cc=amit.mahajan@b-labs.com \
    --cc=bbalban@b-labs.com \
    --cc=dawidc@b-labs.com \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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.