Re: [PATCH] x86/sev: Make SEV_STATUS available via SYSFS

Alexey Gladkov
2025-03-10T15:50:20Z

On Mon, Mar 10, 2025 at 04:41:52PM +0100, Borislav Petkov wrote:
> On Mon, Mar 10, 2025 at 04:33:08PM +0100, Jürgen Groß wrote:
> > Kind of.
> >
> > /sys/hypervisor is meant to provide data for running under a hypervisor.
> >
> > It is NOT meant to provide data for running as a hypervisor.
>
> Hah.
>
> Which would mean that
>
> /sys/hypervisor == /sys/guest
>
> the way we envision it.
>
> Do we need to dump all the HV levels in it?

Hm. We already have:

/sys/hypervisor/type (Type of hypervisor)
/sys/hypervisor/guest_type (Type of guest)

I don't really understand how you propose to locate the files for host and
guest and what you propose to put in /sys/guest.

> I think Joerg wants to dump the fact that there's an SVSM present. I guess we
> can dump the "stack" of "things" running under Linux as you suggest it.
>
> Hmmm.
>
> --
> Regards/Gruss,
> Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette
>

--
Rgrds, legion