Re: [RFC PATCH v2 51/69] KVM: x86/mmu: Allow per-VM override of the TDP max page level
From: Sean Christopherson
Date: Tue Jul 13 2021 - 17:03:10 EST
On Tue, Jul 06, 2021, Paolo Bonzini wrote:
> On 03/07/21 00:04, isaku.yamahata@xxxxxxxxx wrote:
> > From: Sean Christopherson <sean.j.christopherson@xxxxxxxxx>
> >
> > TODO: This is tentative patch. Support large page and delete this patch.
> >
> > Allow TDX to effectively disable large pages, as SEPT will initially
> > support only 4k pages.
...
> Seems good enough for now.
Looks like SNP needs a dynamic check, i.e. a kvm_x86_ops hook, to handle an edge
case in the RMP. That's probably the better route given that this is a short-term
hack (hopefully :-D).