Re: [PATCH 1/2] x86/virt/tdx: Drop tdx_clflush_*()
From: Tony Lindgren
Date: Wed Sep 23 2026 - 03:49:33 EST
On Tue, Sep 22, 2026 at 01:52:14PM -0700, Rick Edgecombe wrote:
> In practice this bit has never been set by any TDX module, so flushing
> is unneeded. Going forward the TDX docs will be updated to clarify that
> CLFLUSH_BEFORE_ALLOC will never be set in any future TDX module either.
Should there be a separate patch first before these two patches to bail
out if the TDX module TDX_FEATURES0 CLFLUSH_BEFORE_ALLOC bit is ever set?
Then dropping the related code would be safe to do without having to
ponder if it's safe to do.