On Fri, Jun 19, 2026 at 12:09:54PM +0100, Fuad Tabba wrote: > Sashiko flagged that when src_page = pfn_to_page(pfn), > tdh_mem_page_add gets identical physical addresses for r8 > (destination) and r9 (source), reading with host KeyID and writing > with TD KeyID on the same address. This is allowed :)
See below description in the spec [1]. In-Place Add: It is allowed to set the TD page HPA in R8 to the same address as the source page HPA in R9. In this case the source page is converted to be a TD private page. [1] https://www.intel.com/content/www/us/en/content-details/853294/intel-trust-domain-extensions-intel-tdx-module-base-architecture-specification.html
