]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev: Add SEV-SNP feature detection/setup
authorMichael Roth <michael.roth@amd.com>
Thu, 24 Feb 2022 16:56:18 +0000 (10:56 -0600)
committerBorislav Petkov <bp@suse.de>
Thu, 7 Apr 2022 14:47:11 +0000 (16:47 +0200)
commit2a4b0448010397ee854b78a3bff4d5ba20aed0e6
tree1cb7b0e4fe544e2d9506fe8bad441bd535eea461
parent36d283dd22b15e1fe2023fa8f2b42c2936f5f073
x86/sev: Add SEV-SNP feature detection/setup

Initial/preliminary detection of SEV-SNP is done via the Confidential
Computing blob. Check for it prior to the normal SEV/SME feature
initialization, and add some sanity checks to confirm it agrees with
SEV-SNP CPUID/MSR bits.

Signed-off-by: Michael Roth <michael.roth@amd.com>
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-39-brijesh.singh@amd.com
arch/x86/boot/compressed/sev.c
arch/x86/include/asm/sev.h
arch/x86/kernel/sev-shared.c
arch/x86/kernel/sev.c
arch/x86/mm/mem_encrypt_identity.c