Re: [RFC v2 PATCH 0/16] Optimize this_cpu_*() ops for non-x86 (ARM64 for this series)

"David Hildenbrand (Arm)" <[email protected]> Tue, 4 Aug 2026 18:54:41 +0200
Newsgroups gmane.linux.kernel,gmane.linux.kernel.mm,gmane.linux.ports.arm.kernel
Message-ID <[email protected]>
On 8/4/26 18:30, Linus Torvalds wrote:
> On Tue, 4 Aug 2026 at 09:27, Christoph Lameter (Ampere) <[email protected]> wrote:
>>
>> We certainly do not want to replicate that approach. We are using the per
>> cpu page tables to avoid address calculations in the VM that other
>> platforms can do with a segment override.
> 
> Right, and I said that that's ok as long as it's a internal
> architecture thing. Not a "this is how the VM works".

Just for completeness: I claim that things like "kernel text replication" are a
completely different beast that we should not even put into the same bag as what
is being discussed here ("using the per  cpu page tables to avoid address
calculations in the VM that other platforms can do with a segment override"), in
some limited internal architecture-specific thing.

(I assume some people here don't realize how tricky kernel text replication
actually is)

-- 
Cheers,

David