Re: [PATCH 2/2] x86/sev: Make SEV_STATUS available via SYSFS
From: Joerg Roedel
Date: Wed Mar 12 2025 - 12:19:21 EST
On Wed, Mar 12, 2025 at 09:04:14AM -0700, Dave Hansen wrote:
> Let's draw this out to its natural conclusion. There are also a bunch of
> TDX attributes that tell you about the capabilities of the VM and the
> TDX module.
>
> Should we have:
>
> /sys/devices/system/cpu/tdx/tdx_attributes
>
> which just dumps out the raw register values that come back from the
> TDCALL? Then we'll go write a tdxguest tool to parse those values.
If I remember correctly the goal of the VirTEE project (where the
snpguest tool lives) is to come up with a combined teeguest tool. This
will serve as a vendor- and architecture-independent frontend for the
various kernel interfaces for confidential computing (configfs-tsm,
sysfs-attributes, ...).
So yes, my expectation is that this tool will understand the raw values
returned from the TDCALL, as long as they are architectural.
But let me think a bit more about a solution that takes care of the
tooling and the human requirements.
Regards,
Joerg