From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796242099; b=wLzQ4ghT2LOalcT6uzKiR+gUmEy+JXugqzCdbz8yLdB583D5/EkBx+c+HiqJcAt7o3/u BZnKuPW6yAasi8TXMvJNtL28FckExGqollqne85qAySeKKcsvxyZtzpikayOJrxtpGbpq G24zrDrD7n4xqJvSgCyTDyAUo0CnFBGcs0oAa6aKLsWKixtv+aSlaKG+p8s9sj9/s2FY5 Pbnu6CtN79lwsJAY40LeEOL6SWTR9KGY17Iyk89ua4hZYl8IHadKtyhWxRAYIDj9llbuJ 7EZQ2ZvW1nG8AKOoDFqiZD5sY8m91VrZhk1qVcySy7Vsi+xmmZYm7YHIXfACo202KQw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796242099; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=iBWxLYYe8DEfhJqcm67asHiS37a+hXLRnTwhcysP9Cc=; b=A87y5ucUB09uz74LvESLGLWsBiIt51WgcSKR+7rEcfyLTeT+re+oD/UVGEOxlyPzWy8t 4PtBo1B50iVSwPQrf9ivxpQRTAd6LE6Rp+O+qrWB/JY6LFii3t3O55QtEn9qOcD7e9/2O fci7lhxIW80AUCL+Q61xWS1I0Z1EpDcAPZtlH1UkBsrUI5EYAw8SpUYLJID0v7wEP3iD0 butT98rg1BOs+457tnufdUXhO+ZAYYu02hB261ZN2pp8wuKl8ag3hjd1bDYZDkE0CznIh 0JHFVnJyRiqSMq8a8YtTmOOLpaKBEztQZ6keomkQNUkuuFDmYDK5Wi5h0PqoutMkYEw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IWzKBbBD; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4C90606A68C for ; Wed, 2 Dec 2026 20:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IWzKBbBD Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D0131F00893; Wed, 2 Dec 2026 20:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796242099; bh=iBWxLYYe8DEfhJqcm67asHiS37a+hXLRnTwhcysP9Cc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=IWzKBbBD2Gw/EG474F7/MCU04AEwA+L8zNLrAZsGeB81gSKrLGN+dz/fPwd96ledt FYq59oE/16YglCQu2kSsHdd3eWCAOfSdYvkDJGNLEI8quS1vihrukYJxWIH3FcOeqQ xndD4xftQh2+QiJpOUldWELPPyJlrhRuvcyKc8jzqqNN5l4XMk62xNaCt0KRdY7onQ FWpYsVV4Mnhd3JLu2XtDbmzprcPJ8Xj6dcmT1kmt8herTKb2Lej0lhF38r5OIl6aku gQGfL9ZNOpmlssBOqRZ9KHAomDQDaFH59FWDiKXhTLb31ObIFzP432NPMKCNhcpiou PJquteZReBAPw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 2/2] x86/early_printk: Add earlyprintk=tdx to drive the UART with TDVMCALLs Reply-To: sashiko-reviews@lists.linux.dev To: "Vishal Verma" Cc: kvm@vger.kernel.org In-Reply-To: <20261202-b4-tdx_earlyprintk_tdcalls-v6-2-779b5ae3a85d@intel.com> References: <20261202-b4-tdx_earlyprintk_tdcalls-v6-0-779b5ae3a85d@intel.com> <20261202-b4-tdx_earlyprintk_tdcalls-v6-2-779b5ae3a85d@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 20:08:18 +0000 X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] x86/boot: missing earlyprintk=3Dtdx support in parse_earlyprintk() -- commit 6e993a158e40bdf99a8c420abebe730e1cbee0b0 Author: Vishal Verma x86/early_printk: Add earlyprintk=3Dtdx to drive the UART with TDVMCALLs This commit adds an earlyprintk=3Dtdx option along with tdx_serial_in() and tdx_serial_out() accessors to drive COM1 directly via TDVMCALLs in a TDX guest instead of taking #VE exceptions on port I/O instructions. > diff --git a/arch/x86/kernel/early_printk.c b/arch/x86/kernel/early_print= k.c > index cba75306e5b62..04dadcd73b857 100644 > --- a/arch/x86/kernel/early_printk.c > +++ b/arch/x86/kernel/early_printk.c [ ... ] > @@ -414,6 +429,11 @@ static int __init setup_early_printk(char *buf) > early_serial_init(buf + 4); > early_console_register(&early_serial_console, keep); > } > + if (!strncmp(buf, "tdx", 3)) { > + early_serial_tdx_init(); > + early_console_register(&early_serial_console, keep); > + break; > + } > #ifdef CONFIG_PCI > if (!strncmp(buf, "pciserial", 9)) { > buf +=3D 9; /* Keep from match the above "pciserial" */ [Severity: Medium] Should parse_earlyprintk() in arch/x86/boot/early_serial_console.c also handle "tdx"? In the decompressor, extract_kernel() calls early_tdx_detect() to wire pio_ops to TDVMCALLs before calling console_init() -> parse_earlyprintk(). Because parse_earlyprintk() only recognizes "serial" and "ttyS", booting with earlyprintk=3Dtdx leaves port =3D 0 and skips early_serial_init(), losing early serial console output in the boot stub and decompressor compared to earlyprintk=3Dserial. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202-b4-tdx_ear= lyprintk_tdcalls-v6-0-779b5ae3a85d@intel.com?part=3D2