mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] x86/alternative: Patch a single alternative location only once
@ 2025-11-10  8:23 Juergen Gross
  2025-11-10  8:23 ` [PATCH v3 1/3] x86/alternative: Drop not needed test after call of alt_replace_call() Juergen Gross
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Juergen Gross @ 2025-11-10  8:23 UTC (permalink / raw)
  To: linux-kernel, x86
  Cc: Juergen Gross, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	Dave Hansen, H. Peter Anvin

Instead of patching a single location potentially multiple times in
case of nested ALTERNATIVE()s, do the patching only after having
evaluated all alt_instr instances for that location.

Changes in V2:
- complete rework (Boris Petkov)

Changes in V3:
- split former V2 patch into 2 by introducing a helper function (Boris Petkov)
- repost the small cleanup patch 1 which was taken before, but has somehow
  vanished from the tip x86/alternative branch (it is still in the tip
  master branch, but I couldn't find it in any other tip branch).

Juergen Gross (3):
  x86/alternative: Drop not needed test after call of alt_replace_call()
  x86/alternative: Use a helper function for patching alternatives
  x86/alternative: Patch a single alternative location only once

 arch/x86/kernel/alternative.c | 135 +++++++++++++++++++---------------
 1 file changed, 76 insertions(+), 59 deletions(-)

-- 
2.51.0


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

end of thread, other threads:[~2025-11-18 15:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-10  8:23 [PATCH v3 0/3] x86/alternative: Patch a single alternative location only once Juergen Gross
2025-11-10  8:23 ` [PATCH v3 1/3] x86/alternative: Drop not needed test after call of alt_replace_call() Juergen Gross
2025-11-10  8:23 ` [PATCH v3 2/3] x86/alternative: Use a helper function for patching alternatives Juergen Gross
2025-11-17 13:41   ` Borislav Petkov
2025-11-17 14:45     ` Jürgen Groß
2025-11-18 15:09       ` Borislav Petkov
2025-11-10  8:23 ` [PATCH v3 3/3] x86/alternative: Patch a single alternative location only once Juergen Gross
2025-11-16 12:42 ` [PATCH v3 0/3] " Borislav Petkov
2025-11-17 11:26   ` Jürgen Groß

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®