From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Artyom Tarasenko <atar4qemu@gmail.com>
Subject: Re: [Qemu-devel] [PATCH 1/3] sun4u: split out NPT and INT_DIS into separate CPUTimer fields
Date: Fri, 8 Jan 2016 14:34:03 +0000 [thread overview]
Message-ID: <568FC8DB.7040308@ilande.co.uk> (raw)
In-Reply-To: <CAFEAcA9709xExoMnzZ3Yj1_1sXCz4q97GGzmgtBoZMyLAmcfxA@mail.gmail.com>
On 08/01/16 14:05, Peter Maydell wrote:
> On 13 November 2015 at 17:54, Mark Cave-Ayland
> <mark.cave-ayland@ilande.co.uk> wrote:
>> Currently there is confusion between use of these bits for the timer and timer
>> compare registers (while they both have the same value, the behaviour is
>> different). Split into two separate CPUTimer fields so we can always reference
>> the correct value.
>>
>> Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
>> ---
>> hw/sparc64/sun4u.c | 17 +++++++++++++----
>> target-sparc/cpu.h | 2 ++
>> 2 files changed, 15 insertions(+), 4 deletions(-)
>>
>> diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c
>> index d6b929c..7153638 100644
>> --- a/hw/sparc64/sun4u.c
>> +++ b/hw/sparc64/sun4u.c
>> @@ -363,6 +363,8 @@ void cpu_put_timer(QEMUFile *f, CPUTimer *s)
>> qemu_put_be32s(f, &s->frequency);
>> qemu_put_be32s(f, &s->disabled);
>> qemu_put_be64s(f, &s->disabled_mask);
>> + qemu_put_be32s(f, &s->npt);
>> + qemu_put_be64s(f, &s->npt_mask);
>> qemu_put_sbe64s(f, &s->clock_offset);
>>
>> timer_put(f, s->qtimer);
>> @@ -373,6 +375,8 @@ void cpu_get_timer(QEMUFile *f, CPUTimer *s)
>> qemu_get_be32s(f, &s->frequency);
>> qemu_get_be32s(f, &s->disabled);
>> qemu_get_be64s(f, &s->disabled_mask);
>> + qemu_get_be32s(f, &s->npt);
>> + qemu_get_be64s(f, &s->npt_mask);
>> qemu_get_sbe64s(f, &s->clock_offset);
>>
>> timer_get(f, s->qtimer);
>
> Hi. I was just rebasing my sparc convert-to-vmstate patchset, and I
> noticed this patch due to a conflict. This change breaks migration
> and vmstate save/restore compatibility for these boards.
> Making the field version-dependent is probably a bit awkward at
> this point because these are just subfields in the overall CPU
> state and share its version number (which in turn is shared with
> the 32-bit CPUs).
>
> Not sure what you want to do here?
Hi Peter,
I'm not particularly worried about sun4u for the moment as there are
already other reasons why migration would fail, e.g. no
VMStateDescription for storing PCI interrupt state in the apb host bridge.
Last time I checked sun4m migration appeared to work under some very
light testing, so as long as this behaviour is preserved then I don't
see a problem.
ATB,
Mark.
next prev parent reply other threads:[~2016-01-08 14:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-13 17:54 [Qemu-devel] [PATCH 0/3] sun4u: timer fixups Mark Cave-Ayland
2015-11-13 17:54 ` [Qemu-devel] [PATCH 1/3] sun4u: split out NPT and INT_DIS into separate CPUTimer fields Mark Cave-Ayland
2016-01-08 14:05 ` Peter Maydell
2016-01-08 14:34 ` Mark Cave-Ayland [this message]
2016-01-08 14:55 ` Peter Maydell
2016-01-08 15:13 ` Mark Cave-Ayland
2015-11-13 17:54 ` [Qemu-devel] [PATCH 2/3] sun4u: split NPT and INT_DIS accesses between timer and compare registers Mark Cave-Ayland
2015-11-13 17:54 ` [Qemu-devel] [PATCH 3/3] target-sparc: implement NPT timer bit Mark Cave-Ayland
2016-01-05 10:32 ` [Qemu-devel] [PATCH 0/3] sun4u: timer fixups Artyom Tarasenko
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=568FC8DB.7040308@ilande.co.uk \
--to=mark.cave-ayland@ilande.co.uk \
--cc=atar4qemu@gmail.com \
--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.