Re: [PATCH v2 0/9] arm64: rework UNDEFINED instruction traps

Will Deacon
2022-11-14T14:22:22Z

On Wed, 19 Oct 2022 15:41:14 +0100, Mark Rutland wrote:
> This series reworks the way UNDEFINED instruction traps are handled,
> removing some dynamic data structure manipulation and related locking.
> This makes the code a bit simpler and removes some unnecessary
> bottlenecks when traps are handled.
>
> My original aim for this series was to get rid of the RCU_NONIDLE() call
> in cpu_suspend(), requiring the removal of the undef_hook list
> manipulation. In the process of looking at that I figured we had a set
> of related problems with UNDEF handling and deprecated instruction
> handling, which this series addresses. This series does not remove the
> RCU_NONIDLE() call from cpu_suspend() as removing that will require
> further rework of the suspend code (e.g. for noinstr safety).
>
> [...]

Applied to arm64 (for-next/undef-traps), thanks!

[1/9] arm64: allow kprobes on EL0 handlers
https://git.kernel.org/arm64/c/5111047c6c82
[2/9] arm64: split EL0/EL1 UNDEF handlers
https://git.kernel.org/arm64/c/59a75653d8f9
[3/9] arm64: factor out EL1 SSBS emulation hook
https://git.kernel.org/arm64/c/e3bee62254e1
[4/9] arm64: factor insn read out of call_undef_hook()
https://git.kernel.org/arm64/c/2bef997bb4d4
[5/9] arm64: rework EL0 MRS emulation
https://git.kernel.org/arm64/c/796ab8bb33c5
[6/9] arm64: armv8_deprecated: fold ops into insn_emulation
https://git.kernel.org/arm64/c/e86cf2e60826
[7/9] arm64: armv8_deprecated move emulation functions
https://git.kernel.org/arm64/c/270af901e2c2
[8/9] arm64: armv8_deprecated: move aarch32 helper earlier
https://git.kernel.org/arm64/c/37402c31aa9c
[9/9] arm64: armv8_deprecated: rework deprected instruction handling
https://git.kernel.org/arm64/c/b6d6c0923f59

Cheers,
--
Will