Re: [PATCH v1 06/26] x86/virt/tdx: Add tdx_page_array helpers for new TDX Module objects

Dave Hansen
2025-11-17T16:41:46Z

On 11/16/25 18:22, Xu Yilun wrote:
> + struct page *root __free(__free_page) = alloc_page(GFP_KERNEL |
> + __GFP_ZERO);
> + if (!root)
> + return NULL;

Why don't you just kcalloc() this like the rest of them?

Then you won't need "mm: Add __free() support for __free_page()" either,
right?