Open Gaming & Graphics

Linux kernel to remove unneeded Intel TDX cache flushing code

Key Takeaway

Intel TDX hardware handles KeyID memory transitions without software cache flushing, allowing Linux to remove the now-unnecessary code.

Summary

Intel Trust Domain Extensions (TDX) için Linux kernel'de gereksiz cache flush kodunun kaldırılmasına yönelik patch serisi yayınlandı. TDX'in ilk tasarımında, Multi-Key Total Memory Encryption (MKTME) KeyID'leri arası bellek geçişlerinde yazılım destekli cache flush gerektiği varsayılmıştı, ancak Intel Xeon donanımı bu işlemi kendi başına halledebiliyor. Intel mühendisi Rick Edgecombe'in gönderdiği patch'ler, kernel kodunu basitleştiriyor. Performans etkisine dair bir bilgi verilmedi.

What the TDX cache flush removal changes

  • Root cause: Early TDX architecture assumed hardware needed software help with cache flushing during KeyID transitions for MKTME's per-VM AES encryption keys
  • Hardware reality: All finalized TDX-capable Xeon processors (from Sapphire Rapids onward, including Emerald Rapids) handle these transitions in hardware without software intervention
  • Code change: Linux kernel patches remove the software-driven cache flush paths that were architected into TDX but never actually needed
  • Documentation lag: Intel's TDX documentation was never updated to reflect that the flushes are unnecessary; a documentation revision is now planned
  • Performance: Patch messages do not quantify any performance improvement from removing the flush operations

Why it matters

Simpler kernel code reduces maintenance burden for TDX, Intel's confidential computing VM technology competing with AMD SEV-SNP and ARM CCA. If measurable performance gains emerge, this would strengthen TDX's position for cloud VM isolation workloads.

Original reference: www.phoronix.com →