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] target/arm: Implement FEAT_DoubleFault
Date: Tue, 31 May 2022 09:04:41 -0700 [thread overview]
Message-ID: <28df077d-ba3d-6f37-04c8-e03e2e61fac8@linaro.org> (raw)
In-Reply-To: <20220531151431.949322-1-peter.maydell@linaro.org>
On 5/31/22 08:14, Peter Maydell wrote:
> The FEAT_DoubleFault extension adds the following:
>
> * All external aborts on instruction fetches and translation table
> walks for instruction fetches must be synchronous. For QEMU this
> is already true.
>
> * SCR_EL3 has a new bit NMEA which disables the masking of SError
> interrupts by PSTATE.A when the SError interrupt is taken to EL3.
> For QEMU we only need to make the bit writable, because we have no
> sources of SError interrupts.
>
> * SCR_EL3 has a new bit EASE which causes synchronous external
> aborts taken to EL3 to be taken at the same entry point as SError.
> (Note that this does not mean that they are SErrors for purposes
> of PSTATE.A masking or that the syndrome register reports them as
> SErrors: it just means that the vector offset is different.)
>
> * The existing SCTLR_EL3.IESB has an effective value of 1 when
> SCR_EL3.NMEA is 1. For QEMU this is a no-op because we don't need
> different behaviour based on IESB (we don't need to do anything to
> ensure that error exceptions are synchronized).
>
> So for QEMU the things we need to change are:
> * Make SCR_EL3.{NMEA,EASE} writable
> * When taking a synchronous external abort at EL3, adjust the
> vector entry point if SCR_EL3.EASE is set
> * Advertise the feature in the ID registers
>
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
> ---
> Based-on:<20220531114258.855804-1-peter.maydell@linaro.org>
> ("target/arm: Declare support for FEAT_RASv1p1")
>
> docs/system/arm/emulation.rst | 1 +
> target/arm/cpu.h | 5 +++++
> target/arm/cpu64.c | 4 ++--
> target/arm/helper.c | 36 +++++++++++++++++++++++++++++++++++
> 4 files changed, 44 insertions(+), 2 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
prev parent reply other threads:[~2022-05-31 16:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-31 15:14 [PATCH] target/arm: Implement FEAT_DoubleFault Peter Maydell
2022-05-31 16:04 ` Richard Henderson [this message]
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=28df077d-ba3d-6f37-04c8-e03e2e61fac8@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).