[RFC PATCH 0/3] arm64: support FEAT_BBM level 2 and large block mapping when rodata=full
Will Deacon
will at kernel.org
Tue Dec 10 03:31:52 PST 2024
On Mon, Nov 18, 2024 at 10:16:07AM -0800, Yang Shi wrote:
>
> When rodata=full kernel linear mapping is mapped by PTE due to arm's
> break-before-make rule.
>
> This resulted in a couple of problems:
> - performance degradation
> - more TLB pressure
> - memory waste for kernel page table
>
> There are some workarounds to mitigate the problems, for example, using
> rodata=on, but this compromises the security measurement.
>
> With FEAT_BBM level 2 support, splitting large block page table to
> smaller ones doesn't need to make the page table entry invalid anymore.
> This allows kernel split large block mapping on the fly.
I think you can still get TLB conflict aborts in this case, so this
doesn't work. Hopefully the architecture can strengthen this in the
future to give you what you need.
Will
More information about the linux-arm-kernel
mailing list