]> git.baikalelectronics.ru Git - kernel.git/commit
x86/compressed: Use firmware-validated CPUID leaves for SEV-SNP guests
authorMichael Roth <michael.roth@amd.com>
Thu, 24 Feb 2022 16:56:15 +0000 (10:56 -0600)
committerBorislav Petkov <bp@suse.de>
Thu, 7 Apr 2022 14:47:11 +0000 (16:47 +0200)
commit3b252f1b482ed9de24a9a87a67588f84ffc3bed7
treefbcf25c4f352bd208b770e880319b4897c941b6a
parented7e5d15461b6170f469c045aab3c4d105373dda
x86/compressed: Use firmware-validated CPUID leaves for SEV-SNP guests

SEV-SNP guests will be provided the location of special 'secrets'
'CPUID' pages via the Confidential Computing blob. This blob is
provided to the boot kernel either through an EFI config table entry,
or via a setup_data structure as defined by the Linux Boot Protocol.

Locate the Confidential Computing from these sources and, if found,
use the provided CPUID page/table address to create a copy that the
boot kernel will use when servicing CPUID instructions via a #VC CPUID
handler.

  [ bp: s/cpuid/CPUID/ ]

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-36-brijesh.singh@amd.com
arch/x86/boot/compressed/sev.c