Re: [PATCH v4 09/15] x86/sev: Provide guest VMPL level to userspace

From: Borislav Petkov
Date: Thu May 30 2024 - 13:06:45 EST


On May 28, 2024 11:08:35 PM GMT+02:00, Tom Lendacky <thomas.lendacky@xxxxxxx> wrote:
>I can move it there. Or what about creating a coco folder under /sys/kernel/? This would then create /sys/kernel/coco/sev/?
>

Sysfs hierarchy is special - can't just add stuff willy nilly. This doc hints at that:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/sysfs.rst

And then those things get documented here:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/ABI

and supported forever and ever until the end of time.

So the usage needs to be precisely documented and weighed whether we really need it...

Thx.

--
Sent from a small device: formatting sucks and brevity is inevitable.