Skip to content

target/arm: More EL2 trapping fixes

Marc Zyngier kvmarm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 16 repliesIn review
  2. v13 patches 11 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target/arm: Honor HCR_EL2.TID2 trapping requirementstarget/arm/helper.c+27 -42 replies
2/5target/arm: Honor HCR_EL2.TID1 trapping requirementstarget/arm/helper.c+32 -41 reply
3/5target/arm: Handle trapping to EL2 of AArch32 VMRS instructionstarget/arm/helper-a64.h target/arm/translate-vfp.inc.c target/arm/vfp_helper.c+46 -37 replies
4/5target/arm: Handle AArch32 CP15 trapping via HSTR_EL2target/arm/cpu.h target/arm/helper.c target/arm/op_helper.c +2 more+33 -11 reply
5/5target/arm: Add support for missing Jazelle system registerstarget/arm/helper.c+27 -03 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchEdgar E. IglesiasRichard Henderson
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/5] target/arm: More EL2 trapping fixes

Hi all,

This series is a follow-up on [1], which tried to address the remaining missing HCR_EL2.TIDx traps. I've hopefully now adressed the comments that Peter and Edgar raised.

I've also tried to tackle missing traps generated by HSTR_EL2, which got completely ignored so far. Note that this results in the use of a new TB bit, which I understand is a rare resource. I'd welcome comments on how to handle it differently if at all possible.

Finally, and as a bonus non-feature, I've added support for the missing Jazelle registers, giving me the opportunity to allow trapping of JIDR to EL2 using HCR_EL2.TID0. Yay, Christmas! ;-)

I'm now going back to kernel stuff. I swear!

[1] https://patchew.org/QEMU/[email protected]/

Marc Zyngier (5):
target/arm: Honor HCR_EL2.TID2 trapping requirements target/arm: Honor HCR_EL2.TID1 trapping requirements target/arm: Handle trapping to EL2 of AArch32 VMRS instructions target/arm: Handle AArch32 CP15 trapping via HSTR_EL2 target/arm: Add support for missing Jazelle system registers

 target/arm/cpu.h               |   2 +
 target/arm/helper-a64.h        |   2 +
 target/arm/helper.c            | 100 ++++++++++++++++++++++++++++++---
 target/arm/op_helper.c         |  21 +++++++
 target/arm/translate-vfp.inc.c |  18 +++++-
 target/arm/translate.c         |   3 +-
 target/arm/translate.h         |   2 +
 target/arm/vfp_helper.c        |  29 ++++++++++
 8 files changed, 165 insertions(+), 12 deletions(-)
Signature · 6 lines
2.20.1

_______________________________________________
kvmarm mailing list
[email protected]
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm