Re: [RFC PATCH v2 23/23] KVM: TDX: Turn on PG_LEVEL_2M after TD is RUNNABLE
From: Huang, Kai
Date: Tue Nov 11 2025 - 06:30:58 EST
On Thu, 2025-08-07 at 17:46 +0800, Yan Zhao wrote:
> + /* Large page is not supported before TD runnable,*/
> + if (KVM_BUG_ON(kvm_tdx->state != TD_STATE_RUNNABLE && level != PG_LEVEL_4K, kvm))
> return -EINVAL;
Not a particular comment to this patch, but could you elaborate a little bit
why PROMOTE isn't supported in this series? This doesn't seem to be
mentioned anywhere in this series (not in the coverletter either).
E.g., theoretically, I think we can have a way to PROMOTE mappings for
initial memory pages (via TDH.MEM.PAGE.ADD), e.g., right before the TD is
becoming runnable?