KVM: arm64: Kill the copro array
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest9 patches 0 repliesNew
- v18 patches 7 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | KVM: arm64: Introduce handling of AArch32 TTBCR2 trapsarch/ arch/ | +2 | 0 replies | |
| 2/9 | KVM: arm64: Move AArch32 exceptions over to AArch64 sysregsarch/ arch/ | +20 | 0 replies | |
| 3/9 | KVM: arm64: Add AArch32 mapping annotationarch/ | +7 | 0 replies | |
| 4/9 | KVM: arm64: Map AArch32 cp15 register to AArch64 sysregsarch/ | +66 | 0 replies | |
| 5/9 | KVM: arm64: Map AArch32 cp14 register to AArch64 sysregsarch/ arch/ | +37 | 0 replies | |
| 6/9 | KVM: arm64: Drop is_32bit trap attributearch/ arch/ arch/ | +0 | 0 replies | |
| 7/9 | KVM: arm64: Drop is_aarch32 trap attributearch/ arch/ arch/ | +2 | 0 replies | |
| 8/9 | KVM: arm64: Drop legacy copro shadow registerarch/ | +1 | 0 replies | |
| 9/9 | KVM: arm64: Drop kvm_coproc.harch/ arch/ arch/ +4 more | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/9] KVM: arm64: Kill the copro array
Since the very beginning of KVM/arm64, we represented the system register file using a dual view: on one side the AArch64 state, on the other a bizarre mapping of the AArch32 state onto the Aarch64 registers.
It was nice at the time as it allowed us to share some code with the 32bit port, and to come up with some creative bugs. But is was always a hack, and we are now in a position to simplify the whole thing.
This series goes through the whole of the AArch32 cp14/15 register file, and point each of them directly at their 64bit equivalent. For the few cases where two 32bit registers share a 64bit counterpart, we define which half of the register they map.
Finally, we drop a large number of definitions and state that have become useless.
This series applies on top of the exception injection rework previously posted [2].
* From v1 [1]:
- Added initial patch to deal with TTBCR2
- Fixed TCR_EL1 handling in inject_abt32()
- Optimise for 64bit handling of sysreg access
- Make most 32bit cp14 registers access the full 64bit register
[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]
Marc Zyngier (9):
KVM: arm64: Introduce handling of AArch32 TTBCR2 traps
KVM: arm64: Move AArch32 exceptions over to AArch64 sysregs
KVM: arm64: Add AArch32 mapping annotation
KVM: arm64: Map AArch32 cp15 register to AArch64 sysregs
KVM: arm64: Map AArch32 cp14 register to AArch64 sysregs
KVM: arm64: Drop is_32bit trap attribute
KVM: arm64: Drop is_aarch32 trap attribute
KVM: arm64: Drop legacy copro shadow register
KVM: arm64: Drop kvm_coproc.h
arch/arm64/include/asm/kvm_coproc.h | 38 ----- arch/arm64/include/asm/kvm_host.h | 73 +++------ arch/arm64/kvm/arm.c | 3 +- arch/arm64/kvm/guest.c | 1 - arch/arm64/kvm/handle_exit.c | 1 - arch/arm64/kvm/inject_fault.c | 62 +++----- arch/arm64/kvm/reset.c | 1 - arch/arm64/kvm/sys_regs.c | 233 +++++++++++++--------------- arch/arm64/kvm/sys_regs.h | 9 +- arch/arm64/kvm/vgic-sys-reg-v3.c | 4 - 10 files changed, 151 insertions(+), 274 deletions(-) delete mode 100644 arch/arm64/include/asm/kvm_coproc.h
Signature · 1 line
2.28.0