]> 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)
commit92a5ee094ed74c55816f05119c4f1714bacdc1ee
treefbcf25c4f352bd208b770e880319b4897c941b6a
parent3466a59e1c7b7e75365d78bc648b6be3faec735b
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