From: Jean-Philippe Brucker <jean-philippe@linaro.org>
To: peter.maydell@linaro.org
Cc: richard.henderson@linaro.org, qemu-arm@nongnu.org,
qemu-devel@nongnu.org,
Jean-Philippe Brucker <jean-philippe@linaro.org>
Subject: [PATCH v3 0/6] target/arm: Fixes for RME
Date: Wed, 9 Aug 2023 13:37:00 +0100 [thread overview]
Message-ID: <20230809123706.1842548-1-jean-philippe@linaro.org> (raw)
A few patches to fix RME support and allow booting a realm guest, based
on "[PATCH v2 00/15] target/arm/ptw: Cleanups and a few bugfixes"
https://lore.kernel.org/all/20230807141514.19075-1-peter.maydell@linaro.org/
Since v2:
* Updated the comment in patch 5. I also removed the check for FEAT_RME,
because as pointed out in "target/arm: Catch illegal-exception-return
from EL3 with bad NSE/NS", the SCR_NSE bit can only be set with
FEAT_RME enabled. Because of this additional change, I didn't add the
Reviewed-by.
* Added an EL-change hook to patch 6, to update the timer IRQ
when changing the security state. I was wondering whether the
el_change function should filter security state changes, since we only
need to update IRQ state when switching between Root and
Secure/NonSecure. But with a small syscall benchmark exercising
EL0-EL1 switch with FEAT_RME enabled, I couldn't see any difference
with and without the el_change hook, so I kept it simple.
* Also added the .raw_write callback for CNTHCTL_EL2.
v2: https://lore.kernel.org/all/20230802170157.401491-1-jean-philippe@linaro.org/
Jean-Philippe Brucker (6):
target/arm/ptw: Load stage-2 tables from realm physical space
target/arm/helper: Fix tlbmask and tlbbits for TLBI VAE2*
target/arm: Skip granule protection checks for AT instructions
target/arm: Pass security space rather than flag for AT instructions
target/arm/helper: Check SCR_EL3.{NSE,NS} encoding for AT instructions
target/arm/helper: Implement CNTHCTL_EL2.CNT[VP]MASK
target/arm/cpu.h | 4 +
target/arm/internals.h | 25 +++---
target/arm/cpu.c | 4 +
target/arm/helper.c | 184 ++++++++++++++++++++++++++++++----------
target/arm/ptw.c | 39 ++++++---
target/arm/trace-events | 7 +-
6 files changed, 188 insertions(+), 75 deletions(-)
--
2.41.0
next reply other threads:[~2023-08-09 12:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-09 12:37 Jean-Philippe Brucker [this message]
2023-08-09 12:37 ` [PATCH v3 1/6] target/arm/ptw: Load stage-2 tables from realm physical space Jean-Philippe Brucker
2023-08-09 12:37 ` [PATCH v3 2/6] target/arm/helper: Fix tlbmask and tlbbits for TLBI VAE2* Jean-Philippe Brucker
2023-08-09 12:37 ` [PATCH v3 3/6] target/arm: Skip granule protection checks for AT instructions Jean-Philippe Brucker
2023-08-09 12:37 ` [PATCH v3 4/6] target/arm: Pass security space rather than flag " Jean-Philippe Brucker
2023-08-09 12:37 ` [PATCH v3 5/6] target/arm/helper: Check SCR_EL3.{NSE, NS} encoding " Jean-Philippe Brucker
2023-08-09 12:37 ` [PATCH v3 6/6] target/arm/helper: Implement CNTHCTL_EL2.CNT[VP]MASK Jean-Philippe Brucker
2023-08-10 13:16 ` [PATCH v3 0/6] target/arm: Fixes for RME Peter Maydell
2023-08-10 13:36 ` Jean-Philippe Brucker
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=20230809123706.1842548-1-jean-philippe@linaro.org \
--to=jean-philippe@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).