Re: [PATCH V2 0/7] KVM: X86/MMU: Use one-off special shadow page for special roots

From: David Matlack
Date: Fri May 13 2022 - 14:32:27 EST


On Fri, May 13, 2022 at 1:22 AM Lai Jiangshan <jiangshanlai@xxxxxxxxx> wrote:
>
> On Tue, May 3, 2022 at 11:06 PM Lai Jiangshan <jiangshanlai@xxxxxxxxx> wrote:
> >
> > From: Lai Jiangshan <jiangshan.ljs@xxxxxxxxxxxx>
> >
> > Current code uses mmu->pae_root, mmu->pml4_root, and mmu->pml5_root to
> > setup special roots. The initialization code is complex and the roots
> > are not associated with struct kvm_mmu_page which causes the code more
> > complex.
> >
> > So add new special shadow pages to simplify it.

FYI I plan to review this after I get a v5 Eager Page Splitting out
(today hopefully). But from looking at it so far, it looks like a
great cleanup!

> >
>
> Ping