From nobody Tue Apr 7 14:06:00 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE9A71E5B63; Wed, 25 Feb 2026 22:51:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772059886; cv=none; b=ttkW8/i1imPWbCG4Eog+SwC2dCCpkKpEYUM7K5h6xg4EQW0tG1KQx5iGMZNQkol1inrNgbCJ1O/6/m4LQKGLhXwkrjjYKAc5OHa6MOTx/eDxfJCYoRAXN6560CTTErhLN95MsHXutKmj10k2K2WHQfpCf2hI8VOPfPhDYf8fwU8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772059886; c=relaxed/simple; bh=mJlxjkMLraNz7CcIJmuskIvy9nBvb2c+enhTRHXXxxU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=PsRyKIe5NxFjHw6av/vAdyt+QhxSr0sidQW2Bpd27OYWdJi1k5q0iNH9NuqAPEN3wOkS4egwnz/1ypr2jrl4+zRa2Dy8ec0O4Yib7I/ExiWke4rS8/ptE40mWpbDw11gARwA3+Hk+24dXCy4AYR6ezn+Sw45eqDZ1qnSnbFwkv8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=PKtPpqyT; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=NYFWRMux; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PKtPpqyT"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NYFWRMux" Date: Wed, 25 Feb 2026 22:51:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1772059884; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BJYmy6cMhPj/yLpEyfp110sX6FhME/nW5LeMKJ2YZA8=; b=PKtPpqyTuUoP3jz9SoChvOtWdNyHcQT8Gkt9FImA1LAt0LHxU/xfRSolv+g6J+Vu5kLalS hFI2/ahAwqEfcCqpbsvQ3S/Eh3+CL3hkhnCIt0XcOvcq6eW/TlFN42W4Nz/dZtgN/dpp1U 350WMJkeRIIgDto6USP6fBqCx5+MPBglxXd6oky0ZJKFhiHEQExICYNfUf7MuSN5EP9d07 t1Yl/j8AIVvra5wwHeU1X7xreRfv98HY+0iDnC+f+AcbGkWtXUqgwjqRtQtZNVo0jnIWq4 yRW/1HCX0vIqjyM6N0pcl2ewrDyjXkFLo/a85EcpBTIWHaJqiclw3SSrCZkKng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1772059884; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BJYmy6cMhPj/yLpEyfp110sX6FhME/nW5LeMKJ2YZA8=; b=NYFWRMuxwddrcp/90k+EGCR8O5DqxP7LLQ7M54Wj7/XdpqurJqsL393558VZt47Gu7JZ8U MDNDOALHCZL41uAA== From: "tip-bot2 for Vishal Verma" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/tdx] x86/virt/tdx: Print TDX module version during init Cc: Vishal Verma , Dave Hansen , Chao Gao , Tony Lindgren , Kiryl Shutsemau , Binbin Wu , Xiaoyao Li , Rick Edgecombe , Kai Huang , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260109-tdx_print_module_version-v2-2-e10e4ca5b450@intel.com> References: <20260109-tdx_print_module_version-v2-2-e10e4ca5b450@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177205988262.1647592.7146621901155081439.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the x86/tdx branch of tip: Commit-ID: b5425f5406ee1b4bd84720f68020ef18ce380bab Gitweb: https://git.kernel.org/tip/b5425f5406ee1b4bd84720f68020ef18c= e380bab Author: Vishal Verma AuthorDate: Fri, 09 Jan 2026 12:14:31 -07:00 Committer: Dave Hansen CommitterDate: Wed, 25 Feb 2026 14:46:33 -08:00 x86/virt/tdx: Print TDX module version during init It is useful to print the TDX module version in dmesg logs. This is currently the only way to determine the module version from the host. It also creates a record for any future problems being investigated. This was also requested in [1]. Include the version in the log messages during init, e.g.: virt/tdx: TDX module version: 1.5.24 virt/tdx: 1034220 KB allocated for PAMT virt/tdx: module initialized Print the version in get_tdx_sys_info(), right after the version metadata is read, which makes it available even if there are subsequent initialization failures. Based on a patch by Kai Huang [2] Signed-off-by: Vishal Verma Signed-off-by: Dave Hansen Reviewed-by: Chao Gao Reviewed-by: Tony Lindgren Reviewed-by: Kiryl Shutsemau Reviewed-by: Binbin Wu Reviewed-by: Xiaoyao Li Reviewed-by: Rick Edgecombe Reviewed-by: Kai Huang Link: https://lore.kernel.org/all/CAGtprH8eXwi-TcH2+-Fo5YdbEwGmgLBh9ggcDvd6= N=3DbsKEJ_WQ@mail.gmail.com/ # [1] Link: https://lore.kernel.org/all/6b5553756f56a8e3222bfc36d0bdb3e5192137b7.= 1731318868.git.kai.huang@intel.com # [2] Link: https://patch.msgid.link/20260109-tdx_print_module_version-v2-2-e10e4= ca5b450@intel.com --- arch/x86/virt/vmx/tdx/tdx_global_metadata.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/virt/vmx/tdx/tdx_global_metadata.c b/arch/x86/virt/vm= x/tdx/tdx_global_metadata.c index 0454124..4c9917a 100644 --- a/arch/x86/virt/vmx/tdx/tdx_global_metadata.c +++ b/arch/x86/virt/vmx/tdx/tdx_global_metadata.c @@ -105,6 +105,12 @@ static int get_tdx_sys_info(struct tdx_sys_info *sysin= fo) int ret =3D 0; =20 ret =3D ret ?: get_tdx_sys_info_version(&sysinfo->version); + + pr_info("Module version: %u.%u.%02u\n", + sysinfo->version.major_version, + sysinfo->version.minor_version, + sysinfo->version.update_version); + ret =3D ret ?: get_tdx_sys_info_features(&sysinfo->features); ret =3D ret ?: get_tdx_sys_info_tdmr(&sysinfo->tdmr); ret =3D ret ?: get_tdx_sys_info_td_ctrl(&sysinfo->td_ctrl);