Re: [PATCH kernel 2/9] pci/tsm: Add tsm_tdi_status

dan.j.williams
2026-02-25T06:34:04Z

Alexey Kardashevskiy wrote:
> Define a structure with all info about a TDI such as TDISP status,
> bind state, used START_INTERFACE options and the report digest.
>
> This will be extended and shared to the userspace.
>
> Signed-off-by: Alexey Kardashevskiy <aik@amd.com>
> ---
>
> Make it uapi? We might want a sysfs node per a field so probably not.
> For now its only user is AMD SEV TIO with a plan to expose this struct
> as a whole via sysfs.

Say more about what this uapi when sysfs already has lock+accept
indications?

Or are you just talking about exporting the TDISP report as a binary
blob?

I think the kernel probably wants a generic abstraction for asserting
that the tsm layer believes the report remains valid between fetch and
run. In other words I am not sure arch features like intf_report_counter
ever show up anywhere in uapi outside of debugfs.