Re: [PATCH] virt: sev-guest: Add MODULE_ALIAS

From: Tom Lendacky
Date: Mon Nov 07 2022 - 09:09:18 EST


On 11/5/22 11:08, Cole Robinson wrote:
On 11/4/22 4:53 PM, Borislav Petkov wrote:
On Fri, Nov 04, 2022 at 04:42:45PM -0400, Cole Robinson wrote:
This fixes driver autoloading

What is the scenario where this needs to be autoloaded?


Any use case that needs /dev/sev-guest, I guess. Saves software from
having to do the modprobe manually. For example, nothing I can find in
https://github.com/AMDESE/sev-guest loads the driver, it expects
/dev/sev-guest to be there already

Mostly I assumed lack of autoloading was an oversight. Was it
intentionally omitted?

It probably was an oversight. To me, it makes sense to auto-load the module if the SNP support created the platform device as part of SNP initialization.

Thanks,
Tom


Thanks,
Cole