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

From: Edgecombe, Rick P

Date: Wed Aug 26 2026 - 12:29:29 EST


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.