From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Andrew Jones <drjones@redhat.com>,
"Krzeminski,
Marcin \(Nokia - PL/Wroclaw\)" <marcin.krzeminski@nokia.com>,
Juan Quintela <quintela@redhat.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Alistair Francis <alistair.francis@xilinx.com>,
qemu-arm <qemu-arm@nongnu.org>, Amit Shah <amit.shah@redhat.com>,
rfsw-patches@mlist.nokia.com
Subject: Re: [Qemu-arm] [PATCH] block: m25p80c Fix vmstate structure name
Date: Fri, 19 Aug 2016 15:19:30 +0100 [thread overview]
Message-ID: <20160819141930.GE2004@work-vm> (raw)
In-Reply-To: <CAFEAcA-m6B_S7zYRE0iqbL+sR8ieJweeVDHqxgx1JB+mGywo3w@mail.gmail.com>
* Peter Maydell (peter.maydell@linaro.org) wrote:
> On 19 August 2016 at 13:30, <marcin.krzeminski@nokia.com> wrote:
> > From: Marcin Krzeminski <marcin.krzeminski@nokia.com>
> >
> > Change wrong name of the vmstate structure. Since this breaks
> > compatibility update version and fields to 0.
> >
> > Signed-off-by: Marcin Krzeminski <marcin.krzeminski@nokia.com>
> > ---
> >
> > This patch assumes that none migrates m25p80 flash devices.
> >
> > hw/block/m25p80.c | 29 ++++++++++++++---------------
> > 1 file changed, 14 insertions(+), 15 deletions(-)
> >
> > diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
> > index 9828ee6..d29ff4c 100644
> > --- a/hw/block/m25p80.c
> > +++ b/hw/block/m25p80.c
> > @@ -1189,9 +1189,9 @@ static Property m25p80_properties[] = {
> > };
> >
> > static const VMStateDescription vmstate_m25p80 = {
> > - .name = "xilinx_spi",
> > - .version_id = 3,
> > - .minimum_version_id = 1,
> > + .name = "m25p80",
> > + .version_id = 0,
> > + .minimum_version_id = 0,
> > .pre_save = m25p80_pre_save,
>
> Are you sure that the name is part of the on-the-wire state?
> I thought it wasn't, in which case this doesn't even need a
> version bump, much less a version-reset-to-zero. But I could
> be wrong. David, Juan, Amit?
>
Yep, it does:
000a9000: 00 1c 04 00 00 00 1d 0a 78 69 6c 69 6e 78 5f 73 ........xilinx_s
000a9010: 70 69 00 00 00 00 00 00 00 03 00 00 00 00 00 00 pi..............
that's from:
./arm-softmmu/qemu-system-arm -M tosa -device at26f004 -S -nographic
QEMU 2.6.90 monitor - type 'help' for more information
(qemu) migrate "exec:xxd -g 1 > tosa.mig"
it's not essential to redo the version_id's, but it's as good a time as any
to get rid of the old version code if you've just broken the compatibility
anyway.
Dave
> thanks
> -- PMM
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
WARNING: multiple messages have this Message-ID (diff)
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Krzeminski,
Marcin (Nokia - PL/Wroclaw)" <marcin.krzeminski@nokia.com>,
QEMU Developers <qemu-devel@nongnu.org>,
Andrew Jones <drjones@redhat.com>,
Alistair Francis <alistair.francis@xilinx.com>,
qemu-arm <qemu-arm@nongnu.org>, Amit Shah <amit.shah@redhat.com>,
rfsw-patches@mlist.nokia.com, Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [Qemu-arm] [PATCH] block: m25p80c Fix vmstate structure name
Date: Fri, 19 Aug 2016 15:19:30 +0100 [thread overview]
Message-ID: <20160819141930.GE2004@work-vm> (raw)
In-Reply-To: <CAFEAcA-m6B_S7zYRE0iqbL+sR8ieJweeVDHqxgx1JB+mGywo3w@mail.gmail.com>
* Peter Maydell (peter.maydell@linaro.org) wrote:
> On 19 August 2016 at 13:30, <marcin.krzeminski@nokia.com> wrote:
> > From: Marcin Krzeminski <marcin.krzeminski@nokia.com>
> >
> > Change wrong name of the vmstate structure. Since this breaks
> > compatibility update version and fields to 0.
> >
> > Signed-off-by: Marcin Krzeminski <marcin.krzeminski@nokia.com>
> > ---
> >
> > This patch assumes that none migrates m25p80 flash devices.
> >
> > hw/block/m25p80.c | 29 ++++++++++++++---------------
> > 1 file changed, 14 insertions(+), 15 deletions(-)
> >
> > diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
> > index 9828ee6..d29ff4c 100644
> > --- a/hw/block/m25p80.c
> > +++ b/hw/block/m25p80.c
> > @@ -1189,9 +1189,9 @@ static Property m25p80_properties[] = {
> > };
> >
> > static const VMStateDescription vmstate_m25p80 = {
> > - .name = "xilinx_spi",
> > - .version_id = 3,
> > - .minimum_version_id = 1,
> > + .name = "m25p80",
> > + .version_id = 0,
> > + .minimum_version_id = 0,
> > .pre_save = m25p80_pre_save,
>
> Are you sure that the name is part of the on-the-wire state?
> I thought it wasn't, in which case this doesn't even need a
> version bump, much less a version-reset-to-zero. But I could
> be wrong. David, Juan, Amit?
>
Yep, it does:
000a9000: 00 1c 04 00 00 00 1d 0a 78 69 6c 69 6e 78 5f 73 ........xilinx_s
000a9010: 70 69 00 00 00 00 00 00 00 03 00 00 00 00 00 00 pi..............
that's from:
./arm-softmmu/qemu-system-arm -M tosa -device at26f004 -S -nographic
QEMU 2.6.90 monitor - type 'help' for more information
(qemu) migrate "exec:xxd -g 1 > tosa.mig"
it's not essential to redo the version_id's, but it's as good a time as any
to get rid of the old version code if you've just broken the compatibility
anyway.
Dave
> thanks
> -- PMM
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2016-08-19 14:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-19 12:30 [Qemu-arm] [PATCH] block: m25p80c Fix vmstate structure name marcin.krzeminski
2016-08-19 12:30 ` [Qemu-devel] " marcin.krzeminski
2016-08-19 13:03 ` [Qemu-arm] " Peter Maydell
2016-08-19 13:03 ` [Qemu-devel] " Peter Maydell
2016-08-19 14:19 ` Dr. David Alan Gilbert [this message]
2016-08-19 14:19 ` Dr. David Alan Gilbert
2016-08-19 22:20 ` [Qemu-arm] [Qemu-devel] " Alistair Francis
2016-08-19 22:20 ` [Qemu-devel] [Qemu-arm] " Alistair Francis
2016-08-22 18:05 ` Paolo Bonzini
2016-08-22 18:05 ` [Qemu-devel] " Paolo Bonzini
2016-09-06 6:42 ` Krzeminski, Marcin (Nokia - PL/Wroclaw)
2016-09-06 6:42 ` [Qemu-devel] " Krzeminski, Marcin (Nokia - PL/Wroclaw)
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=20160819141930.GE2004@work-vm \
--to=dgilbert@redhat.com \
--cc=alistair.francis@xilinx.com \
--cc=amit.shah@redhat.com \
--cc=drjones@redhat.com \
--cc=marcin.krzeminski@nokia.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=rfsw-patches@mlist.nokia.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.