Re: [PATCH v4 1/2] x86/tdx: Move port I/O definitions to a shared header
From: Edgecombe, Rick P
Date: Fri Oct 09 2026 - 15:28:48 EST
On Mon, 2026-10-05 at 16:50 -0600, Vishal Verma wrote:
> In preparation for adding a 'tdx' option for early_printk which uses
> direct TDVMCALLs for I/O, factor out the PORT_READ and PORT_WRITE
> definitions from arch/x86/coco/tdx/tdx.c into
> arch/x86/include/asm/shared/tdx.h, and namespace them with 'TDVMCALL_'.
>
> The decompressor also used 0/1 literals in its tdx_io_{in,out} helpers -
> switch those to use the new definitions.
>
> Signed-off-by: Vishal Verma <vishal.l.verma@xxxxxxxxx>
> Reviewed-by: Kiryl Shutsemau (Meta) <kas@xxxxxxxxxx>
> Cc: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>
Reviewed-by: Rick Edgecombe <rick.p.edgecome@xxxxxxxxx>