Re: [PATCH v4 11/17] KVM: TDX: Honor the guest's accept level contained in an EPT violation
From: Edgecombe, Rick P
Date: Wed Oct 07 2026 - 21:05:54 EST
On Mon, 2026-09-28 at 17:11 +0800, Yan Zhao wrote:
> +
> + /*
> + * No TLB flush is required, as the "BLOCK + TRACK + kick off vCPUs"
> + * sequence required by the TDX-Module includes a TLB flush.
> + */
I think the TLB flush is actually more obvious than the level + 1/2 bits below.
It is worried about inhibiting 1GB mappings, why?
> + hugepage_set_guest_inhibit(slot, gfn, level + 1);
> + if (level == PG_LEVEL_4K)
> + hugepage_set_guest_inhibit(slot, gfn, level + 2);
> +
> + return 0;
> +}
> +