crypto: ccp: Provide an API to issue SEV and SNP commands
authorBrijesh Singh <brijesh.singh@amd.com>
Fri, 26 Jan 2024 04:11:14 +0000 (22:11 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 29 Jan 2024 19:34:18 +0000 (20:34 +0100)
commit18085ac2f2fbf56aee9cbf5846740150e394f4f4
treebfdee2334ad5d7b2e32aba62cd9dc63a754a76ba
parent1ca5614b84eed5904f65f143e0e7aaab0ac4c6b2
crypto: ccp: Provide an API to issue SEV and SNP commands

Export sev_do_cmd() as a generic API for the hypervisor to issue
commands to manage an SEV or an SNP guest. The commands for SEV and SNP
are defined in the SEV and SEV-SNP firmware specifications.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240126041126.1927228-15-michael.roth@amd.com
drivers/crypto/ccp/sev-dev.c
include/linux/psp-sev.h