Re: [PATCH] x86/sev: Make SEV_STATUS available via SYSFS
From: Borislav Petkov
Date: Mon Mar 10 2025 - 12:06:27 EST
On Mon, Mar 10, 2025 at 05:00:50PM +0100, Juergen Gross wrote:
> There is work in progress for SEV guests at least.
Nice.
> Shouldn't the coco related information be the same regardless of the
> hypervisor beneath?
Right, but...
> IOW: do you envision the coding for populating the coco related sysfs guest
> nodes to be different when running as a KVM or a Hyper-V guest?
... if you have some coco tools which need to read out HV info - for whatever
reason - then they'll have to do:
if (HV == KVM)
read /sys/kvm
else if (HV == Xen)
read /sys/xen
else
...
which we might save them upfront...
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette