From: Mark Rutland <mark.rutland@arm.com>
To: linux-arm-kernel@lists.infradead.org
Cc: catalin.marinas@arm.com, james.morse@arm.com, joey.gouly@arm.com,
mark.rutland@arm.com, peterz@infradead.org, will@kernel.org
Subject: [PATCH v2 0/9] arm64: rework UNDEFINED instruction traps
Date: Wed, 19 Oct 2022 15:41:14 +0100 [thread overview]
Message-ID: <20221019144123.612388-1-mark.rutland@arm.com> (raw)
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).
I've tested this series in VMs on ThunderX2 (for the ID reg emulation
changes) and a Raspberry Pi 4 (for the armv8_deprecated changes), as
described in the relevant commits.
Since v1 [1]:
* Rebase atop v6.1-rc1
* Fix typos
[1] https://lore.kernel.org/linux-arm-kernel/20220928102659.247510-1-mark.rutland@arm.com/
Thanks,
Mark.
Mark Rutland (9):
arm64: allow kprobes on EL0 handlers
arm64: split EL0/EL1 UNDEF handlers
arm64: factor out EL1 SSBS emulation hook
arm64: factor insn read out of call_undef_hook()
arm64: rework EL0 MRS emulation
arm64: armv8_deprecated: fold ops into insn_emulation
arm64: armv8_deprecated move emulation functions
arm64: armv8_deprecated: move aarch32 helper earlier
arm64: armv8_deprecated: rework deprected instruction handling
arch/arm64/include/asm/cpufeature.h | 3 +-
arch/arm64/include/asm/exception.h | 7 +-
arch/arm64/include/asm/spectre.h | 2 +
arch/arm64/include/asm/traps.h | 19 +-
arch/arm64/kernel/armv8_deprecated.c | 567 +++++++++++++--------------
arch/arm64/kernel/cpufeature.c | 23 +-
arch/arm64/kernel/entry-common.c | 8 +-
arch/arm64/kernel/proton-pack.c | 26 +-
arch/arm64/kernel/traps.c | 93 ++---
9 files changed, 345 insertions(+), 403 deletions(-)
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2022-10-19 15:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-19 14:41 Mark Rutland [this message]
2022-10-19 14:41 ` [PATCH v2 1/9] arm64: allow kprobes on EL0 handlers Mark Rutland
2022-10-19 14:41 ` [PATCH v2 2/9] arm64: split EL0/EL1 UNDEF handlers Mark Rutland
2022-10-19 14:41 ` [PATCH v2 3/9] arm64: factor out EL1 SSBS emulation hook Mark Rutland
2022-10-19 14:41 ` [PATCH v2 4/9] arm64: factor insn read out of call_undef_hook() Mark Rutland
2022-10-19 14:41 ` [PATCH v2 5/9] arm64: rework EL0 MRS emulation Mark Rutland
2022-10-19 14:41 ` [PATCH v2 6/9] arm64: armv8_deprecated: fold ops into insn_emulation Mark Rutland
2022-10-19 14:41 ` [PATCH v2 7/9] arm64: armv8_deprecated move emulation functions Mark Rutland
2022-10-19 14:41 ` [PATCH v2 8/9] arm64: armv8_deprecated: move aarch32 helper earlier Mark Rutland
2022-10-19 14:41 ` [PATCH v2 9/9] arm64: armv8_deprecated: rework deprected instruction handling Mark Rutland
2023-02-03 10:08 ` Ruan Jinjie
2023-02-03 17:27 ` Mark Rutland
2023-02-06 2:03 ` Ruan Jinjie
2023-02-06 9:13 ` Mark Rutland
2023-02-07 7:01 ` Ruan Jinjie
2022-11-14 14:20 ` [PATCH v2 0/9] arm64: rework UNDEFINED instruction traps Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221019144123.612388-1-mark.rutland@arm.com \
--to=mark.rutland@arm.com \
--cc=catalin.marinas@arm.com \
--cc=james.morse@arm.com \
--cc=joey.gouly@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=peterz@infradead.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox