]> www.infradead.org Git - users/dwmw2/linux.git/commit
crypto: ccp: Define the SEV-SNP commands
authorBrijesh Singh <brijesh.singh@amd.com>
Fri, 26 Jan 2024 04:11:12 +0000 (22:11 -0600)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 29 Jan 2024 19:34:18 +0000 (20:34 +0100)
commit3a45dc2b419e691f3dd7fb42c2a1b1cc8146be4f
treedd2f8a286a0846390f9938bfcc6d22e4e2d21b3b
parent661b1c6169e2b260753b850823d583d9f2c01be4
crypto: ccp: Define the SEV-SNP commands

AMD introduced the next generation of SEV called SEV-SNP (Secure Nested
Paging). SEV-SNP builds upon existing SEV and SEV-ES functionality while
adding new hardware security protection.

Define the commands and structures used to communicate with the AMD-SP
when creating and managing the SEV-SNP guests. The SEV-SNP firmware spec
is available at developer.amd.com/sev.

  [ mdr: update SNP command list and SNP status struct based on current
    spec, use C99 flexible arrays, fix kernel-doc issues. ]

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Co-developed-by: Ashish Kalra <ashish.kalra@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-13-michael.roth@amd.com
drivers/crypto/ccp/sev-dev.c
include/linux/psp-sev.h
include/uapi/linux/psp-sev.h