Re: [PATCH] x86/virt/tdx: Warn on !4K level in tdh_mem_page_aug()

From: Yan Zhao

Date: Wed Aug 26 2026 - 23:03:48 EST


On Thu, Aug 27, 2026 at 12:23:56AM +0800, Edgecombe, Rick P wrote:
> On Wed, 2026-08-26 at 06:36 -0700, Edgecombe, Rick P wrote:
> > We are waiting for some final confirmation that the TDX module will never set
> > CLFLUSH_BEFORE_ALLOC. And that means all the clflushing is not needed. So I
> > would probably shortly (weeks) send a patch to rip out any extra flushing added
> > along with the rest of it.
> >
> > I think another valid course of action here is to do nothing for now.
>
> Ok, just got confirmation. So how about instead of this, we just delete the
> clflushing all together. Then the warning is not needed because the function
> works for huge pages after that, right Yan? I can send a patch.
Yes. Deleting clflushing all together works.