Re: [RFC PATCH v2 14/23] KVM: TDX: Split and inhibit huge mappings if a VMExit carries level info

From: Huang, Kai
Date: Mon Nov 17 2025 - 20:04:45 EST


On Fri, 2025-11-14 at 15:22 +0800, Yan Zhao wrote:
> > Will 'level == PG_LEVEL_4K' in this case?  Or will this function return
> > early right after check the eeq_type?
> The function will return early right after check the eeq_type.

But for such case the fault handler will still return 2M and KVM will AUG 2M
page? Then if guest accepts 4K page, a new exit to KVM would happen?

But this time KVM is able to find the info that guest is accepting 4K and KVM
will split the 2M to 4K pages so we are good to go?