Re: [PATCH v10 04/25] x86/virt/tdx: Move TDX_FEATURES0 bits to asm/tdx.h
From: Xiaoyao Li
Date: Thu May 21 2026 - 06:15:06 EST
On 5/20/2026 9:38 PM, Chao Gao wrote:
Future changes will add support for new TDX features exposed asReviewed-by: Xiaoyao Li <xiaoyao.li@xxxxxxxxx>
TDX_FEATURES0 bits. The presence of these features will need to be checked
outside of arch/x86/virt. So the feature query helpers, and the
TDX_FEATURES0 defines they reference, will need to live in the widely
accessible asm/tdx.h header. Move the existing TDX_FEATURES0 to asm/tdx.h
so that they can all be kept together.
Opportunistically switch to BIT_ULL() since TDX_FEATURES0 is 64-bit.
No functional change intended.
Signed-off-by: Chao Gao <chao.gao@xxxxxxxxx>
Link: https://lore.kernel.org/kvm/20260427152854.101171-17-chao.gao@xxxxxxxxx/ # [1]
Link: https://lore.kernel.org/kvm/20251121005125.417831-16-rick.p.edgecombe@xxxxxxxxx/ # [2]