From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 282493563EA; Mon, 12 Jan 2026 11:23:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768217034; cv=none; b=NeWOo8cxGtED7uaujf+srqo3zOKj3PlfG1Cj0nckgrbL1dom2zV7j+4+BpRVcCiWgSI17XJIrmVlfApbG4qd4HR7bCGgkXcQKL0yml6TrTlZIYeKA/n1/hMvtlyD0lyatTtx2vtJarTHvKinoUxUVEHc4Tsm3YPv76WSFMHOq3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768217034; c=relaxed/simple; bh=l0dWg9Pih1Ls0Lks8qWNFOChTy0MPCbkBVoJQfnRCxo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lT30p6NNxcVRJoIPqPcYbsE8NBLVoOzf19FU9B9Ybn/cJ6khAZyLeZOWvk0zPk8aC2Dntu7Yf+aDAiFIzUJafgChV6XS4DWHoiJETwRNR5UDt3eKkRJUtIidQkWJexWim/QiwXld1vj8OmRyTSlimfg4fzomihEAc7i2ukVD1Mk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LnMNaKXE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LnMNaKXE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48933C19424; Mon, 12 Jan 2026 11:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1768217033; bh=l0dWg9Pih1Ls0Lks8qWNFOChTy0MPCbkBVoJQfnRCxo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LnMNaKXEHRBWXzlnpzn8WUonIv2Xs+8YABkyKkwy/eeVA3xdtJ6xuCoVjX5qvz8Y7 hxWWSW90ISb22OYchyuTyF4n0eJav2ePoPzdjtxy+DCL8M4FRiytkXyG1DNr2Fm7kD MbdkPL6yhfZBS1H3Kz3/WHhhJG0eUwyvKx3bIacGyzLiz+NEbJjIuC3JF2b6yQ6p2T NPST7UqyPqSxwvhryaixs9GBpGvTQZnLCZkCO0cyxJJh0onlIlBPI+8HGcZYvhxH70 eg5/gpS0VDrvTAzT2ytfcW7CDArW5S1U35Q1Sk/lfu9kHHv04THGJuGfCEOs/dly+7 5J0o8ZQtXYlvQ== Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfauth.phl.internal (Postfix) with ESMTP id 6C705F40068; Mon, 12 Jan 2026 06:23:52 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Mon, 12 Jan 2026 06:23:52 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdduudejfedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepmfhirhihlhcu ufhhuhhtshgvmhgruhcuoehkrghssehkvghrnhgvlhdrohhrgheqnecuggftrfgrthhtvg hrnhepffffkeegffejgfekvdejgeegtddtleejkefhhfduieduhfeigfduuefghfehffdu necuffhomhgrihhnpehkvghrnhgvlhdrohhrghenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehkihhrihhllhdomhgvshhmthhprghuthhhphgv rhhsohhnrghlihhthidqudeiudduiedvieehhedqvdekgeeggeejvdekqdhkrghspeepkh gvrhhnvghlrdhorhhgsehshhhuthgvmhhovhdrnhgrmhgvpdhnsggprhgtphhtthhopedv kedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvhhishhhrghlrdhlrdhvvghrmh grsehinhhtvghlrdgtohhmpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgv rhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqtghotghosehlihhsth hsrdhlihhnuhigrdguvghvpdhrtghpthhtohepkhhvmhesvhhgvghrrdhkvghrnhgvlhdr ohhrghdprhgtphhtthhopeigkeeisehkvghrnhgvlhdrohhrghdprhgtphhtthhopegthh grohdrghgrohesihhnthgvlhdrtghomhdprhgtphhtthhopegurghnrdhjrdifihhllhhi rghmshesihhnthgvlhdrtghomhdprhgtphhtthhopehkrghirdhhuhgrnhhgsehinhhtvg hlrdgtohhmpdhrtghpthhtohepthhglhigsehlihhnuhhtrhhonhhigidruggv X-ME-Proxy: Feedback-ID: i10464835:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Jan 2026 06:23:50 -0500 (EST) Date: Mon, 12 Jan 2026 11:23:44 +0000 From: Kiryl Shutsemau To: Vishal Verma Cc: linux-kernel@vger.kernel.org, linux-coco@lists.linux.dev, kvm@vger.kernel.org, x86@kernel.org, Chao Gao , Dan Williams , Kai Huang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Rick Edgecombe Subject: Re: [PATCH v2 2/2] x86/virt/tdx: Print TDX module version during init Message-ID: References: <20260109-tdx_print_module_version-v2-0-e10e4ca5b450@intel.com> <20260109-tdx_print_module_version-v2-2-e10e4ca5b450@intel.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260109-tdx_print_module_version-v2-2-e10e4ca5b450@intel.com> On Fri, Jan 09, 2026 at 12:14:31PM -0700, Vishal Verma wrote: > 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 > Reviewed-by: Chao Gao > Cc: Chao Gao > Cc: Rick Edgecombe > Cc: Kai Huang > Cc: Dave Hansen > Cc: Dan Williams > Link: https://lore.kernel.org/all/CAGtprH8eXwi-TcH2+-Fo5YdbEwGmgLBh9ggcDvd6N=bsKEJ_WQ@mail.gmail.com/ # [1] > Link: https://lore.kernel.org/all/6b5553756f56a8e3222bfc36d0bdb3e5192137b7.1731318868.git.kai.huang@intel.com # [2] Reviewed-by: Kiryl Shutsemau -- Kiryl Shutsemau / Kirill A. Shutemov