]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev: Provide support for SNP guest request NAEs
authorBrijesh Singh <brijesh.singh@amd.com>
Mon, 7 Mar 2022 21:33:51 +0000 (15:33 -0600)
committerBorislav Petkov <bp@suse.de>
Thu, 7 Apr 2022 14:47:12 +0000 (16:47 +0200)
commitee68e061fe7442ed064aab3ca1b1a896c0634657
tree37b7a764183747cb3a64700efe4b9ea5eac913e6
parentde2eda0db29ef500e415407fe31f2611f06a079c
x86/sev: Provide support for SNP guest request NAEs

Version 2 of GHCB specification provides SNP_GUEST_REQUEST and
SNP_EXT_GUEST_REQUEST NAE that can be used by the SNP guest to
communicate with the PSP.

While at it, add a snp_issue_guest_request() helper that will be used by
driver or other subsystem to issue the request to PSP.

See SEV-SNP firmware and GHCB spec for more details.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220307213356.2797205-42-brijesh.singh@amd.com
arch/x86/include/asm/sev-common.h
arch/x86/include/asm/sev.h
arch/x86/include/uapi/asm/svm.h
arch/x86/kernel/sev.c