Re: [RFC PATCH 13/13] KVM: x86: remove struct kvm_arch.tdp_max_page_level

From: Isaku Yamahata
Date: Thu Aug 11 2022 - 18:56:53 EST


On Mon, Aug 08, 2022 at 01:40:53PM +0800,
Xiaoyao Li <xiaoyao.li@xxxxxxxxx> wrote:

> On 8/8/2022 6:18 AM, isaku.yamahata@xxxxxxxxx wrote:
> > From: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>
> >
> > Now that everything is there to support large page for TD guest. Remove
> > tdp_max_page_level from struct kvm_arch that limits the page size.
>
> Isaku, we cannot do this to remove tdp_max_page_level. Instead, we need
> assign it as PG_LEVEL_2M, because TDX currently only supports AUG'ing a
> 4K/2M page, 1G is not supported yet.

I went too further. I'll fix it, thanks.
--
Isaku Yamahata <isaku.yamahata@xxxxxxxxx>