mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
crypto: ccp - Add new SEV/SNP platform shutdown API
Add new API interface to do SEV/SNP platform shutdown when KVM module is unloaded. Reviewed-by: Dionna Glaze <dionnaglaze@google.com> Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Ashish Kalra <ashish.kalra@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
@@ -2468,6 +2468,15 @@ static void sev_firmware_shutdown(struct sev_device *sev)
|
||||
mutex_unlock(&sev_cmd_mutex);
|
||||
}
|
||||
|
||||
void sev_platform_shutdown(void)
|
||||
{
|
||||
if (!psp_master || !psp_master->sev_data)
|
||||
return;
|
||||
|
||||
sev_firmware_shutdown(psp_master->sev_data);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(sev_platform_shutdown);
|
||||
|
||||
void sev_dev_destroy(struct psp_device *psp)
|
||||
{
|
||||
struct sev_device *sev = psp->sev_data;
|
||||
|
||||
Reference in New Issue
Block a user