]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/sev: Let sev_es_efi_map_ghcbs() map the CA pages too
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Jun 2025 11:40:13 +0000 (13:40 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 27 Jun 2025 12:07:10 +0000 (14:07 +0200)
commita7549636f67f973474ebe1ad262acc2aa4d1327d
tree1532b2577574dca9c6db927c04bdbda9e1a20dbe
parent7b22e0432981c2fa230f1b493082b7e67112c4aa
x86/sev: Let sev_es_efi_map_ghcbs() map the CA pages too

OVMF EFI firmware needs access to the CA page to do SVSM protocol calls. For
example, when the SVSM implements an EFI variable store, such calls will be
necessary.

So add that to sev_es_efi_map_ghcbs() and also rename the function to reflect
the additional job it is doing now.

  [ bp: Massage. ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250626114014.373748-4-kraxel@redhat.com
arch/x86/coco/sev/core.c
arch/x86/include/asm/sev.h
arch/x86/platform/efi/efi_64.c