[PATCH v2 0/8] arm64: alternatives: improvements

Catalin Marinas catalin.marinas at arm.com
Fri Sep 16 10:46:20 PDT 2022


On Mon, 12 Sep 2022 17:22:02 +0100, Mark Rutland wrote:
> This series reworks the arm64 alternatives code. The major aim is to
> make the patching code more consistent and robust, and as a benefit we
> can also make the kernel Image smaller.
> 
> Largely, the series makes two structural changes:
> 
> 1) Replacing cpucap static branches with equivalent alternatives.
> 
> [...]

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

There's a slight conflict in the apply_alternatives_vdso() function
introduced by Joey but I fixed it up locally. The ARM64_NPATCHABLE
disappeared with Mark's reworking.

[1/8] arm64: cpufeature: make cpus_have_cap() noinstr-safe
      https://git.kernel.org/arm64/c/92b4b5619f12
[2/8] arm64: alternatives: kvm: prepare for cap changes
      https://git.kernel.org/arm64/c/34bbfdfb146b
[3/8] arm64: alternatives: proton-pack: prepare for cap changes
      https://git.kernel.org/arm64/c/747ad8d55764
[4/8] arm64: alternatives: hoist print out of __apply_alternatives()
      https://git.kernel.org/arm64/c/c5ba03260c7a
[5/8] arm64: alternatives: make alt_region const
      https://git.kernel.org/arm64/c/b723edf3a12a
[6/8] arm64: alternatives: have callbacks take a cap
      https://git.kernel.org/arm64/c/4c0bd995d73e
[7/8] arm64: alternatives: add alternative_has_feature_*()
      https://git.kernel.org/arm64/c/21fb26bfb01f
[8/8] arm64: alternatives: add shared NOP callback
      https://git.kernel.org/arm64/c/d926079f17bf

-- 
Catalin




More information about the linux-arm-kernel mailing list