From: Richard Henderson <richard.henderson@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [PATCH 1/3] hw/intc/arm_gicv3: Move checking of redist-region-count to arm_gicv3_common_realize
Date: Fri, 1 Oct 2021 12:24:03 -0400 [thread overview]
Message-ID: <3e7cdccf-4a14-0147-db18-381bf888d431@linaro.org> (raw)
In-Reply-To: <20210930150842.3810-2-peter.maydell@linaro.org>
On 9/30/21 11:08 AM, Peter Maydell wrote:
> The GICv3 devices have an array property redist-region-count.
> Currently we check this for errors (bad values) in
> gicv3_init_irqs_and_mmio(), just before we use it. Move this error
> checking to the arm_gicv3_common_realize() function, where we
> sanity-check all of the other base-class properties. (This will
> always be before gicv3_init_irqs_and_mmio() is called, because
> that function is called in the subclass realize methods, after
> they have called the parent-class realize.)
>
> The motivation for this refactor is:
> * we would like to use the redist_region_count[] values in
> arm_gicv3_common_realize() in a subsequent patch, so we need
> to have already done the sanity-checking first
> * this removes the only use of the Error** argument to
> gicv3_init_irqs_and_mmio(), so we can remove some error-handling
> boilerplate
>
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
> ---
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
next prev parent reply other threads:[~2021-10-01 16:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-30 15:08 [PATCH 0/3] arm_gicv3: Support multiple redistributor regions Peter Maydell
2021-09-30 15:08 ` [PATCH 1/3] hw/intc/arm_gicv3: Move checking of redist-region-count to arm_gicv3_common_realize Peter Maydell
2021-09-30 21:54 ` Philippe Mathieu-Daudé
2021-10-01 9:18 ` Peter Maydell
2021-10-01 16:24 ` Richard Henderson [this message]
2021-09-30 15:08 ` [PATCH 2/3] hw/intc/arm_gicv3: Set GICR_TYPER.Last correctly when nb_redist_regions > 1 Peter Maydell
2021-10-01 16:32 ` Richard Henderson
2021-09-30 15:08 ` [PATCH 3/3] hw/intc/arm_gicv3: Support multiple redistributor regions Peter Maydell
2021-10-01 16:34 ` Richard Henderson
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=3e7cdccf-4a14-0147-db18-381bf888d431@linaro.org \
--to=richard.henderson@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.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).