Re: [PATCH 1/2] x86/coco/sev: Move SEV SYSFS group to /sys/hypervisor/
From: Joerg Roedel
Date: Wed Mar 12 2025 - 11:43:55 EST
On Wed, Mar 12, 2025 at 03:32:04PM +0000, Liam Merwick wrote:
> one suggestion below but either way,
>
> Reviewed-by: Liam Merwick <liam.merwick@xxxxxxxxxx>
Thanks!
> > + sev_kobj = kobject_create_and_add("sev", hypervisor_kobj);
>
> Given hypervisor_kobj is created elsewhere, and the caller of
> hypervisor_init() doesn't check for ENOMEM, would it be worth
> adding a check here that it exists before using it?
Hmm, dunno, I guess it would make things slightly more robust. On the
other side all existing users of this object already assume a successful
initialization.
Regards,
Joerg