TianoCore EDK2 master
|
#include <IndustryStandard/Q35MchIch9.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/DxeServicesTableLib.h>
#include <Library/MemEncryptSevLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Guid/ConfidentialComputingSevSnpBlob.h>
#include <Library/PcdLib.h>
#include <Pi/PiDxeCis.h>
#include <Protocol/SevMemoryAcceptance.h>
#include <Protocol/MemoryAccept.h>
#include <Uefi/UefiSpec.h>
Go to the source code of this file.
Macros | |
#define | EFI_MEMORY_INTERNAL_MASK 0x0700000000000000ULL |
Functions | |
STATIC EFI_STATUS | AllocateConfidentialComputingBlob (OUT CONFIDENTIAL_COMPUTING_SNP_BLOB_LOCATION **CcBlobPtr) |
STATIC EFI_STATUS EFIAPI | AmdSevMemoryAccept (IN EDKII_MEMORY_ACCEPT_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS StartAddress, IN UINTN Size) |
STATIC EFI_STATUS | AcceptAllMemory (VOID) |
VOID EFIAPI | ResolveUnacceptedMemory (IN EFI_EVENT Event, IN VOID *Context) |
STATIC EFI_STATUS EFIAPI | AllowUnacceptedMemory (IN OVMF_SEV_MEMORY_ACCEPTANCE_PROTOCOL *This) |
EFI_STATUS EFIAPI | AmdSevDxeEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
Variables | |
STATIC EFI_HANDLE | mAmdSevDxeHandle = NULL |
STATIC BOOLEAN | mAcceptAllMemoryAtEBS = TRUE |
STATIC EFI_EVENT | mAcceptAllMemoryEvent = NULL |
STATIC OVMF_SEV_MEMORY_ACCEPTANCE_PROTOCOL | mMemoryAcceptanceProtocol = { AllowUnacceptedMemory } |
STATIC EDKII_MEMORY_ACCEPT_PROTOCOL | mMemoryAcceptProtocol |
AMD Sev Dxe driver. This driver is dispatched early in DXE, due to being list in APRIORI. It clears C-bit from MMIO and NonExistent Memory space when SEV is enabled.
Copyright (c) 2017 - 2020, AMD Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AmdSevDxe.c.
#define EFI_MEMORY_INTERNAL_MASK 0x0700000000000000ULL |
Definition at line 29 of file AmdSevDxe.c.
STATIC EFI_STATUS AcceptAllMemory | ( | VOID | ) |
Definition at line 98 of file AmdSevDxe.c.
STATIC EFI_STATUS AllocateConfidentialComputingBlob | ( | OUT CONFIDENTIAL_COMPUTING_SNP_BLOB_LOCATION ** | CcBlobPtr | ) |
Definition at line 33 of file AmdSevDxe.c.
STATIC EFI_STATUS EFIAPI AllowUnacceptedMemory | ( | IN OVMF_SEV_MEMORY_ACCEPTANCE_PROTOCOL * | This | ) |
Definition at line 178 of file AmdSevDxe.c.
EFI_STATUS EFIAPI AmdSevDxeEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Definition at line 196 of file AmdSevDxe.c.
STATIC EFI_STATUS EFIAPI AmdSevMemoryAccept | ( | IN EDKII_MEMORY_ACCEPT_PROTOCOL * | This, |
IN EFI_PHYSICAL_ADDRESS | StartAddress, | ||
IN UINTN | Size | ||
) |
Definition at line 73 of file AmdSevDxe.c.
Definition at line 160 of file AmdSevDxe.c.
Definition at line 66 of file AmdSevDxe.c.
Definition at line 68 of file AmdSevDxe.c.
STATIC EFI_HANDLE mAmdSevDxeHandle = NULL |
Definition at line 64 of file AmdSevDxe.c.
STATIC OVMF_SEV_MEMORY_ACCEPTANCE_PROTOCOL mMemoryAcceptanceProtocol = { AllowUnacceptedMemory } |
Definition at line 188 of file AmdSevDxe.c.
STATIC EDKII_MEMORY_ACCEPT_PROTOCOL mMemoryAcceptProtocol |
Definition at line 190 of file AmdSevDxe.c.