Re: Linux 6.11-rc1
From: Peter Zijlstra
Date: Wed Jul 31 2024 - 17:27:35 EST
On Wed, Jul 31, 2024 at 02:23:02PM -0700, Linus Torvalds wrote:
> On Wed, 31 Jul 2024 at 14:20, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> >
> > The alternative is ripping that level thing out entirely, and simply
> > duplicate anything we find in the page-tables.
>
> That looks clean to me, and don't we want to clone the minimal range
> anyway - even on x86-64?
x86_64 has everything PMD aligned. It *should* never encounter a PTE.
Also, this thing blindly clones the format the kernel page-tables have,
it will not split a PMD into multiple PTE entries just to clone a
smaller range. It is super simple.