Re: [PATCH v1 1/3] KVM: x86: Convert TDP level calculation to vendor's specific code

Sean Christopherson
2021-08-05T22:45:07Z

On Thu, Aug 05, 2021, Jim Mattson wrote:
> On Thu, Aug 5, 2021 at 1:55 PM Wei Huang <wei.huang2@amd.com> wrote:
> >
> > This design assumes that all x86 CPUs have the flexibility of changing the
> > nested page table level different from host CPU.
>
> I can't even parse this sentence. What are you trying to say here?

NPT inherits the host's CR4, and thus CR4.LA57. So KVM NPT is stuck using whatever
N-level paging the host kernel is using.