[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/3] target/arm: Fix ESR_EL2 buglet, implement FEAT_PAN3
From: |
Peter Maydell |
Subject: |
[PATCH 0/3] target/arm: Fix ESR_EL2 buglet, implement FEAT_PAN3 |
Date: |
Fri, 31 Mar 2023 15:50:42 +0100 |
The main purpose of this patchset is to implement FEAT_PAN3,
which allows the guest to force privileged code to not be able
to access memory that can be executed by user code. (This is
an extension of the existing FEAT_PAN which denies access
if user code could read or write the memory.) That is all
done in patch 3.
Patches 1 and 2 fix a buglet in our ESR_EL2 syndrome reporting
that I happened to notice while testing the FEAT_PAN3 code:
we were reporting the detailed instruction syndrome information
for all data aborts reported to EL2, whereas the architecture
requires this to happen only for stage-2 aborts, not stage-1
aborts.
This is all for-8.1 material -- the syndrome bug is minor
and has been around forever so isn't worth trying to fix
for 8.0 at this point in the release cycle.
thanks
-- PMM
Peter Maydell (3):
target/arm: Pass ARMMMUFaultInfo to merge_syn_data_abort()
target/arm: Don't set ISV when reporting stage 1 faults in ESR_EL2
target/arm: Implement FEAT_PAN3
docs/system/arm/emulation.rst | 1 +
target/arm/cpu.h | 5 +++++
target/arm/cpu64.c | 2 +-
target/arm/ptw.c | 14 +++++++++++++-
target/arm/tcg/tlb_helper.c | 26 ++++++++++++++++----------
5 files changed, 36 insertions(+), 12 deletions(-)
--
2.34.1
- [PATCH 0/3] target/arm: Fix ESR_EL2 buglet, implement FEAT_PAN3,
Peter Maydell <=