]> 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)
commit97c75732fc1fec2b3c7bf8e5181640d768fcf07a
tree37b7a764183747cb3a64700efe4b9ea5eac913e6
parent910968215dc73c096557d8ac330ef529eaeff771
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