Re: [PATCH 0/2] x86/tdx: Use TDVMCALLs directly for earlyprintk

From: Edgecombe, Rick P

Date: Thu Sep 10 2026 - 21:19:12 EST


On Thu, 2026-09-10 at 16:34 -0600, Vishal Verma wrote:
> Background
> ==========
>
> TDX guests have early_printk support, but it is through a roundabout way
> using a #VE exception as a functional mechanism, which is fragile. The
> exception handler has to use TDG.VP.VEINFO.GET to find out what faulted,
> and then issue the TDVMCALL. This can be simplified into a TDVMCALL from
> the guest that does the I/O directly.

How many other port io #VE users are there? How far is this on the way to
removing them all? Is early printk an especially fragile #VE port io user?