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

Mark Rutland mark.rutland at arm.com
Sat Sep 17 05:46:35 PDT 2022


On Fri, Sep 16, 2022 at 06:46:20PM +0100, Catalin Marinas wrote:
> 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.

Sorry about that, and thanks for the fixup!

IIUC that just needed a s/ARM64_NPATCHABLE/ARM64_NCAPS/, and the resulting code
in commit ebbb0b0b37249038 looks right to me.

Thanks,
Mark.

> [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