Re: [PATCH 1/2] x86/virt/tdx: Retrieve TDX module version
From: Vishal Annapurve
Date: Fri Oct 24 2025 - 10:21:58 EST
On Tue, Sep 30, 2025 at 7:24 PM Chao Gao <chao.gao@xxxxxxxxx> wrote:
>
> Each TDX module is associated with a version in the x.y.z format, where x
> represents the major version, y the minor version, and z the update
> version. Knowing the running TDX module version is valuable for bug
> reporting and debugging.
>
> Retrieve the TDX module version using the existing metadata reading
> interface, in preparation for exposing it to userspace via sysfs.
>
In addition to exposing the TDX module version via sysfs, it would be
helpful to have the TDX module version captured in dmesg logs/console.