]> git.baikalelectronics.ru Git - kernel.git/commit
x86/compressed/64: Add identity mapping for Confidential Computing blob
authorMichael Roth <michael.roth@amd.com>
Thu, 24 Feb 2022 16:56:17 +0000 (10:56 -0600)
committerBorislav Petkov <bp@suse.de>
Thu, 7 Apr 2022 14:47:11 +0000 (16:47 +0200)
commit36d283dd22b15e1fe2023fa8f2b42c2936f5f073
treeca4df99849282409d8e689445d2b83f6f371c330
parent5f24638c164ea0293be0d2378af7cd6addf47313
x86/compressed/64: Add identity mapping for Confidential Computing blob

The run-time kernel will need to access the Confidential Computing blob
very early during boot to access the CPUID table it points to. At that
stage, it will be relying on the identity-mapped page table set up by
the boot/compressed kernel, so make sure the blob and the CPUID table it
points to are mapped in advance.

  [ bp: Massage. ]

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