Re: [PATCH v2 2/2] x86/early_printk: Add earlyprintk=tdx to drive the UART with TDVMCALLs
From: Verma, Vishal L
Date: Mon Sep 21 2026 - 16:19:58 EST
On Mon, 2026-09-21 at 12:58 -0700, Dave Hansen wrote:
> On 9/21/26 12:52, Vishal Verma wrote:
> > + earlyprintk=tdx[,ttySn[,baudrate]]
>
> Isn't keeping support for ttySn and baudrate kinda silly? It costs a few
> lines of code at least.
I kept it because ultimately we call early_serial_init() to set the
'serial port' up - mainly select which address we want to use. The baud
rate parsing tags along because that's just how the helper is set up.
I think ttySN parsing can still be useful? The guest could be set up
with multiple serial devices and someone could choose to redirect
earlyprintk output to say ttyS1, and that would work.