linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: cleanup DAIF handling for EL0 returns
@ 2024-02-06 12:38 Mark Rutland
  2024-02-06 12:38 ` [PATCH 1/3] arm64: Simplify do_notify_resume() DAIF masking Mark Rutland
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Mark Rutland @ 2024-02-06 12:38 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: broonie, catalin.marinas, james.morse, mark.rutland, will

Hi,

These patches rework DAIF handling when returning to EL0, simplifiying
the logic in do_notify_resume() and allowing Debug + SError to be
unmasked for a little longer during exception return.

My primary motivation for these changes is to centralize entry/exit DAIF
management within entry-common.c, as this will allow entry/exit
sequences to be specialised, and make it much easier to add support for
FEAT_NMI. With specialized entry DAIF management, it will also be
possible to simplify local_daif_{save,restore}() and
local_irq_{save,restore}().

I'm sending this out on its own as (IMO) it's a nice cleanup on its own,
and I don't believe that I'll have the remainder of the DAIF rework
ready for this cycle.

The series is based on v6.8-rc3.

Mark.

Mark Rutland (3):
  arm64: Simplify do_notify_resume() DAIF masking
  arm64: Move do_notify_resume() to entry-common.c
  arm64: Unmask Debug + SError in do_notify_resume()

 arch/arm64/include/asm/exception.h |  2 +-
 arch/arm64/kernel/entry-common.c   | 36 ++++++++++++++++++++++++++-
 arch/arm64/kernel/signal.c         | 39 ++----------------------------
 3 files changed, 38 insertions(+), 39 deletions(-)

-- 
2.30.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2024-02-27 10:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 12:38 [PATCH 0/3] arm64: cleanup DAIF handling for EL0 returns Mark Rutland
2024-02-06 12:38 ` [PATCH 1/3] arm64: Simplify do_notify_resume() DAIF masking Mark Rutland
2024-02-08 14:04   ` Mark Brown
2024-02-06 12:38 ` [PATCH 2/3] arm64: Move do_notify_resume() to entry-common.c Mark Rutland
2024-02-06 12:52   ` Mark Brown
2024-02-27  3:25   ` Liao, Chang
2024-02-27 10:24     ` Mark Rutland
2024-02-06 12:38 ` [PATCH 3/3] arm64: Unmask Debug + SError in do_notify_resume() Mark Rutland
2024-02-08 14:08   ` Mark Brown
2024-02-08  2:28 ` [PATCH 0/3] arm64: cleanup DAIF handling for EL0 returns Itaru Kitayama
2024-02-08 12:38   ` Mark Rutland
2024-02-08 20:53     ` Itaru Kitayama
2024-02-20 18:19 ` Catalin Marinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).