audk/OvmfPkg/Include
Tom Lendacky 2b330b57db OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654

In preparation for running under an SVSM at VMPL1 or higher (higher
numerically, lower privilege), re-organize the way a page state change
is performed in order to free up the GHCB for use by the SVSM support.

Currently, the page state change logic directly uses the GHCB shared
buffer to build the page state change structures. However, this will be
in conflict with the use of the GHCB should an SVSM call be required.

Instead, use a separate buffer (an area in the workarea during SEC and
an allocated page during PEI/DXE) to hold the page state change request
and only update the GHCB shared buffer as needed.

Since the information is copied to, and operated on, in the GHCB shared
buffer this has the added benefit of not requiring to save the start and
end entries for use when validating the memory during the page state
change sequence.

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 18:30:03 +00:00
..
Dsc OvmfPkg: Shell*.inc: allow building without network support 2024-02-25 17:38:07 +00:00
Fdf OvmfPkg: only add shell to FV in case secure boot is disabled 2024-02-25 17:38:07 +00:00
Guid OvmfPkg/AmdSevDxe: Update ConfidentialComputing blob struct definition 2023-04-26 13:39:01 +00:00
IndustryStandard OvmfPkg: add IndustryStandard/VirtioSerial.h 2023-05-04 14:26:58 +00:00
Library ArmVirtPkg: Move the FdtSerialPortAddressLib to OvmfPkg 2024-02-06 23:51:47 +08:00
Pcd
Ppi
Protocol OvmfPkg: remove gEfiLegacy8259ProtocolGuid 2023-12-07 18:04:57 +00:00
OvmfPlatforms.h
TdxCommondefs.inc OvmfPkg: Enable APs to accept memory for TDVF 2022-12-21 07:06:17 +00:00
WorkArea.h OvmfPkg/BaseMemEncryptSevLib: Re-organize page state change support 2024-04-17 18:30:03 +00:00