target-arm: add Security Extensions for CPUs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest32 patches 45 repliesIn review
- v223 patches 51 repliesSuperseded
Changes in v3 from the cover letter
* rebased
* reordered
* changed from ARM_FEATURE_SECURITY_EXTENSIONS to ARM_FEATURE_EL3
* renamed tz_cp_reginfo to security_cp_reginfo
* extended arm_is_secure() with EL3 handling
* rewrote nsacr patch
* removed MMU split for secure/nonsecure world
* removed arm_current_sctlr
* new banking scheme
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | target-arm: add cpu feature EL3 to CPUs with Security Extensionstarget-arm/ | +4 | 0 replies | |
| 2/32 | target-arm: move Aarch32 SCR into security reglisttarget-arm/ | +8 | 2 replies | |
| 3/32 | target-arm: increase arrays of registers R13 & R14target-arm/ target-arm/ | +4 | 1 reply | |
| 4/32 | target-arm: add arm_is_secure() functiontarget-arm/ | +38 | 6 replies | |
| 5/32 | target-arm: reject switching to monitor modetarget-arm/ | +2 | 4 replies | |
| 6/32 | target-arm: make arm_current_pl() return PL3target-arm/ | +9 | 3 replies | |
| 7/32 | target-arm: add non-secure Translation Block flagtarget-arm/ target-arm/ target-arm/ +1 more | +15 | 4 replies | |
| 8/32 | target-arm: A32: Emulate the SMC instructiontarget-arm/ target-arm/ target-arm/ | +41 | 0 replies | |
| 9/32 | target-arm: extend Aarch32 async excp maskingtarget-arm/ | +61 | 1 reply | |
| 10/32 | target-arm: extend Aarch64 SCR.{FIQ|IRQ} handlingtarget-arm/ | +72 | 1 reply | |
| 11/32 | target-arm: add async excp target_el&mode functiontarget-arm/ target-arm/ | +140 | 2 replies | |
| 12/32 | target-arm: use dedicated target_el functiontarget-arm/ | +6 | 0 replies | |
| 13/32 | target-arm: implement IRQ/FIQ routing to Monitor modetarget-arm/ | +9 | 0 replies | |
| 14/32 | target-arm: Respect SCR.FW, SCR.AW and SCTLR.NMFItarget-arm/ | +39 | 2 replies | |
| 15/32 | target-arm: add NSACR registertarget-arm/ target-arm/ | +73 | 3 replies | |
| 16/32 | target-arm: add SDER definitiontarget-arm/ target-arm/ | +4 | 0 replies | |
| 17/32 | target-arm: add MVBAR supporttarget-arm/ target-arm/ | +10 | 0 replies | |
| 18/32 | target-arm: add macros to access banked registerstarget-arm/ | +35 | 0 replies | |
| 19/32 | target-arm: insert Aarch32 cpregs twice into hashtabletarget-arm/ target-arm/ target-arm/ | +40 | 4 replies | |
| 20/32 | target-arm: arrayfying fieldoffset for bankingtarget-arm/ target-arm/ | +36 | 1 reply | |
| 21/32 | target-arm: add SCTLR_EL3 and make SCTLR bankedhw/ target-arm/ target-arm/ +2 more | +62 | 0 replies | |
| 22/32 | target-arm: make CSSELR bankedtarget-arm/ target-arm/ | +14 | 0 replies | |
| 23/32 | target-arm: add TTBR0_EL3 and make TTBR0/1 bankedtarget-arm/ target-arm/ | +54 | 0 replies | |
| 24/32 | target-arm: add TCR_EL3 and make TTBCR bankedtarget-arm/ target-arm/ | +44 | 0 replies | |
| 25/32 | target-arm: make c2_mask and c2_base_mask bankedtarget-arm/ target-arm/ | +20 | 0 replies | |
| 26/32 | target-arm: make DACR bankedhw/ target-arm/ target-arm/ | +23 | 0 replies | |
| 27/32 | target-arm: make IFSR bankedtarget-arm/ target-arm/ | +14 | 0 replies | |
| 28/32 | target-arm: make DFSR bankedtarget-arm/ target-arm/ target-arm/ | +34 | 4 replies | |
| 29/32 | target-arm: make IFAR/DFAR bankedtarget-arm/ target-arm/ target-arm/ +1 more | +47 | 0 replies | |
| 30/32 | target-arm: make PAR bankedtarget-arm/ target-arm/ | +23 | 2 replies | |
| 31/32 | target-arm: make VBAR bankedtarget-arm/ target-arm/ target-arm/ | +23 | 2 replies | |
| 32/32 | target-arm: make c13 cp regs banked (FCSEIDR, ...)target-arm/ target-arm/ | +57 | 2 replies |
Reviews trailers per patch
3 of 32 patches have a Reviewed-by or Acked-by.
| Patch | Edgar E. Iglesias |
|---|---|
| 1/32 | |
| 2/32 | |
| 3/32 | R-b |
| 4/32 | |
| 5/32 | R-b |
| 6/32 | |
| 7/32 | R-b |
| 8/32 | |
| 9/32 | |
| 10/32 | |
| 11/32 | |
| 12/32 | |
| 13/32 | |
| 14/32 | |
| 15/32 | |
| 16/32 | |
| 17/32 | |
| 18/32 | |
| 19/32 | |
| 20/32 | |
| 21/32 | |
| 22/32 | |
| 23/32 | |
| 24/32 | |
| 25/32 | |
| 26/32 | |
| 27/32 | |
| 28/32 | |
| 29/32 | |
| 30/32 | |
| 31/32 | |
| 32/32 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH v3 00/32] target-arm: add Security Extensions for CPUs
Hi,
this is round 3 of the Security Extension patches which started with the TrustZone patchset by Samsung. Many patches were dropped or got separated from this patchset. It shows yet another mechanism of register banking for EL3 running in Aarch32 mode. This version also conforms better with the ARM ARMv8. The patches got reordered with banking related patches at the end. Most of the registers get converted separately now.
The whole patchset is based on master with Edgar's patches of yesterday (v2 target-arm: Parts of the Aarch64 EL2/3 exception model) applied.
Patch 9,10,11 and 12 are added for some more discussion about Edgar's patches which break out masking and target_el. Parts of it could probably be added to Edgar's patchset.
v2 -> v3:
* rebased
* reordered
* changed from ARM_FEATURE_SECURITY_EXTENSIONS to ARM_FEATURE_EL3
* renamed tz_cp_reginfo to security_cp_reginfo
* extended arm_is_secure() with EL3 handling
* rewrote nsacr patch
* removed MMU split for secure/nonsecure world
* removed arm_current_sctlr
* new banking scheme
v2: http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg02522.html
Thanks,
Fabian
Fabian Aggeler (29):
target-arm: add cpu feature EL3 to CPUs with Security Extensions
target-arm: move Aarch32 SCR into security reglist
target-arm: increase arrays of registers R13 & R14
target-arm: add arm_is_secure() function
target-arm: make arm_current_pl() return PL3
target-arm: A32: Emulate the SMC instruction
target-arm: extend Aarch32 async excp masking
target-arm: extend Aarch64 SCR.{FIQ|IRQ} handling
target-arm: add async excp target_el&mode function
target-arm: use dedicated target_el function
target-arm: implement IRQ/FIQ routing to Monitor mode
target-arm: Respect SCR.FW, SCR.AW and SCTLR.NMFI
target-arm: add NSACR register
target-arm: add MVBAR support
target-arm: add macros to access banked registers
target-arm: insert Aarch32 cpregs twice into hashtable
target-arm: arrayfying fieldoffset for banking
target-arm: add SCTLR_EL3 and make SCTLR banked
target-arm: make CSSELR banked
target-arm: add TTBR0_EL3 and make TTBR0/1 banked
target-arm: add TCR_EL3 and make TTBCR banked
target-arm: make c2_mask and c2_base_mask banked
target-arm: make DACR banked
target-arm: make IFSR banked
target-arm: make DFSR banked
target-arm: make IFAR/DFAR banked
target-arm: make PAR banked
target-arm: make VBAR banked
target-arm: make c13 cp regs banked (FCSEIDR,...)
Sergey Fedorov (3):
target-arm: reject switching to monitor mode
target-arm: add non-secure Translation Block flag
target-arm: add SDER definition
hw/arm/pxa2xx.c | 4 +- target-arm/cpu.c | 11 +- target-arm/cpu.h | 453 +++++++++++++++++++++++++---- target-arm/helper-a64.c | 37 ++- target-arm/helper.c | 702 ++++++++++++++++++++++++++++++++++----------- target-arm/internals.h | 5 + target-arm/machine.c | 4 +- target-arm/op_helper.c | 2 +- target-arm/translate-a64.c | 1 + target-arm/translate.c | 57 ++-- target-arm/translate.h | 1 + 11 files changed, 1031 insertions(+), 246 deletions(-)
Signature · 1 line
1.8.3.2