From: Eric Auger <eauger@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, Peter Xu <peterx@redhat.com>
Cc: Fabiano Rosas <farosas@suse.de>,
qemu-devel@nongnu.org, Juraj Marcin <jmarcin@redhat.com>,
Gavin Shan <gshan@redhat.com>, Eric Auger <eric.auger@redhat.com>
Subject: Re: [PATCH for-12.0 v2 7/9] arm/machine: Convert cpu_post_load() to take Error**
Date: Fri, 27 Nov 2026 18:00:53 +0100 [thread overview]
Message-ID: <64a1ab9c-e43e-43ba-970c-a9f201d82fc3@redhat.com> (raw)
In-Reply-To: <CAFEAcA-d2Das=U+da6W2j2RPR48zf4yxO2k8-SCdwDPMvF_C4w@mail.gmail.com>
Hi!
On 11/27/26 3:44 PM, Peter Maydell wrote:
> On Fri, 27 Nov 2026 at 14:23, Peter Xu <peterx@redhat.com> wrote:
>>
>> On Fri, Nov 27, 2026 at 10:22:50AM -0300, Fabiano Rosas wrote:
>>> Peter Xu <peterx@redhat.com> writes:
>>>
>>>> Convert it to post_load_errp() version, so as to be able to report verbose
>>>> errors when hit.
>>>>
>>>> A few things to mention:
>>>>
>>>> - The old "fail" count won't work with Error**, switch to fail and return
>>>> immediately, assuming we should stop migration immediately hitting the
>>>> 1st error.
>>>>
>>>
>>> You could keep the handle_cpreg* untouched and just create a new generic
>>> Error when fail > 0 like you did for !kvm_arm_cpu_post_load() and
>>> !write_list_to_cpustate(), no? That way we don't lose the reporting of
>>> the other bugged registers.
>>
>> I can, but I thought it was good cleaning up those error_report()s. I'll
>> see if PeterM has any preference on that.
>
> This is largely Eric's code (cc'd).
Thanks Peter for looping me in.
Yeah. About the history, "the fail =" pattern was pre-existing and I kept it in
dbfed8d80837 ("target/arm/machine: Fix detection of unknown incoming cpregs")
Then as Fabiano reported I intended to collect all failures and not stop on the first one. It would be nice to keep that I think because it helps in the failure diagnosis.
Thanks
Eric
>
> -- PMM
next prev parent reply other threads:[~2026-11-27 17:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 23:16 [PATCH for-12.0 v2 0/9] migration: Remove VMSTATE_VALIDATE() and VMS_MUST_EXIST Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 1/9] rust/migration: Allow usize as the length of a varray Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 2/9] rust/hpet: Move vmstate_validate!() check into post_load Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 3/9] rust/migration: Remove vmstate_validate!() macro and test Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 4/9] pcie/aer: Remove the usage of VMSTATE_VALIDATE() Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 5/9] hw/gpio/zaurus: Move VMSTATE_VALIDATE() check into post_load_errp() Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 6/9] hpet: Move VMSTATE_VALIDATE() check into post_load Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 7/9] arm/machine: Convert cpu_post_load() to take Error** Peter Xu
2026-11-27 13:22 ` Fabiano Rosas
2026-11-27 14:23 ` Peter Xu
2026-11-27 14:44 ` Peter Maydell
2026-11-27 17:00 ` Eric Auger [this message]
2026-11-26 23:16 ` [PATCH for-12.0 v2 8/9] arm/machine: Move all VMSTATE_VALIDATE() usages into post_load Peter Xu
2026-11-27 13:41 ` Fabiano Rosas
2026-11-27 13:50 ` Peter Maydell
2026-11-27 14:29 ` Peter Xu
2026-11-26 23:16 ` [PATCH for-12.0 v2 9/9] migration: Drop VMSTATE_VALIDATE() and VMS_MUST_EXIST Peter Xu
2026-11-27 14:16 ` Fabiano Rosas
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=64a1ab9c-e43e-43ba-970c-a9f201d82fc3@redhat.com \
--to=eauger@redhat.com \
--cc=eric.auger@redhat.com \
--cc=farosas@suse.de \
--cc=gshan@redhat.com \
--cc=jmarcin@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=peterx@redhat.com \
--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.