audk/OvmfPkg/Library/BaseMemEncryptSevLib/X64
Tom Lendacky f6bf37c171 OvmfPkg/BaseMemEncryptSevLib: Use AmdSvsmSnpPvalidate() to validate pages
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654

The PVALIDATE instruction is used to change the SNP validation of a page,
but that can only be done when running at VMPL0. To prepare for running at
a less priviledged VMPL, use the AmdSvsmLib library API to perform the
PVALIDATE. The AmdSvsmLib library will perform the proper operation on
behalf of the caller.

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Michael Roth <michael.roth@amd.com>
Cc: Min Xu <min.m.xu@intel.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
2024-04-17 20:04:41 +00:00
..
DxeSnpSystemRamValidate.c OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support 2024-04-17 18:30:03 +00:00
MemEncryptSevLib.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PeiDxeVirtualMemory.c OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support 2024-04-17 18:30:03 +00:00
PeiSnpSystemRamValidate.c OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support 2024-04-17 18:30:03 +00:00
SecSnpSystemRamValidate.c OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support 2024-04-17 18:30:03 +00:00
SecVirtualMemory.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
SnpPageStateChange.h OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support 2024-04-17 18:30:03 +00:00
SnpPageStateChangeInternal.c OvmfPkg/BaseMemEncryptSevLib: Use AmdSvsmSnpPvalidate() to validate pages 2024-04-17 20:04:41 +00:00
VirtualMemory.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VirtualMemory.h OvmfPkg/MemEncryptSevLib: add support to validate > 4GB memory in PEI phase 2021-12-09 06:28:10 +00:00