From: Leon Alrae <leon.alrae@imgtec.com>
To: "Maciej W. Rozycki" <macro@codesourcery.com>,
Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] mips: Correctly save/restore the FP flush-to-zero state
Date: Fri, 5 Dec 2014 14:35:24 +0000 [thread overview]
Message-ID: <5481C2AC.5000609@imgtec.com> (raw)
In-Reply-To: <alpine.DEB.1.10.1411121847260.2881@tp.orcam.me.uk>
On 12/11/2014 18:58, Maciej W. Rozycki wrote:
> On Wed, 12 Nov 2014, Peter Maydell wrote:
>
>>> @@ -208,12 +206,12 @@ int cpu_load(QEMUFile *f, void *opaque,
>>> MIPSCPU *cpu = mips_env_get_cpu(env);
>>> int i;
>>>
>>> - if (version_id < 3) {
>>> + if (version_id != CPU_SAVE_VERSION) {
>>> return -EINVAL;
>>> }
>>
>> Shouldn't this read "if (version_id < 6)" ?
>> Otherwise next time somebody bumps the CPU_SAVE_VERSION it
>> will give another migration compatibility break without that
>> being very obvious.
>
> I gave it a thought before making this change and concluded it would be
> the lesser evil (plus loudly manifesting and easily correctable) if
> someone accidentally makes QEMU refuse to load older images where in
> fact no compatibility issue exists, than if the reverse is the case,
> that is older incompatible images are accepted where they should not
> (causing a silent misinterpretation of data), simply because someone
> missed the need to change the condition in addition to bumping up
> CPU_SAVE_VERSION. WDYT?
Finally I got round to reviewing v2 of this patch. Above sounds
reasonable for me and I haven't seen any objections.
Hopefully we will convert it into VMState during 2.3 development (Peter,
thanks for pointing at the commit, it will certainly help).
Maciej, the only question I have is why you removed only some of "if
(version_id >= X)" lines in machine.c?
Regards,
Leon
next prev parent reply other threads:[~2014-12-05 14:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 16:07 [Qemu-devel] [PATCH] mips: Correctly save/restore the FP flush-to-zero state Maciej W. Rozycki
2014-11-12 17:51 ` Peter Maydell
2014-11-12 18:58 ` Maciej W. Rozycki
2014-12-05 14:35 ` Leon Alrae [this message]
2014-12-05 18:37 ` Maciej W. Rozycki
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=5481C2AC.5000609@imgtec.com \
--to=leon.alrae@imgtec.com \
--cc=aurelien@aurel32.net \
--cc=macro@codesourcery.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 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).