On 12/2/24 17:03, Rick Edgecombe wrote: > +u64 tdh_mng_addcx(struct tdx_td *td, struct page *tdcs_page) > +{ > + struct tdx_module_args args = { > + .rcx = page_to_pfn(tdcs_page) << PAGE_SHIFT, This is a nit, but there is a page_to_phys().
On 12/2/24 17:03, Rick Edgecombe wrote: > +u64 tdh_mng_addcx(struct tdx_td *td, struct page *tdcs_page) > +{ > + struct tdx_module_args args = { > + .rcx = page_to_pfn(tdcs_page) << PAGE_SHIFT, This is a nit, but there is a page_to_phys().