TianoCore EDK2 master
|
#include <Uefi/UefiBaseType.h>
#include <Library/BaseLib.h>
#include <Library/PcdLib.h>
#include <Library/DebugLib.h>
#include <Library/MemEncryptSevLib.h>
#include "SnpPageStateChange.h"
#include "VirtualMemory.h"
Go to the source code of this file.
Data Structures | |
struct | SNP_PRE_VALIDATED_RANGE |
Functions | |
STATIC BOOLEAN | DetectPreValidatedOverLap (IN PHYSICAL_ADDRESS StartAddress, IN PHYSICAL_ADDRESS EndAddress, OUT SNP_PRE_VALIDATED_RANGE *OverlapRange) |
VOID EFIAPI | MemEncryptSevSnpPreValidateSystemRam (IN PHYSICAL_ADDRESS BaseAddress, IN UINTN NumPages) |
Variables | |
STATIC UINT8 | mPscBufferPage [EFI_PAGE_SIZE] |
STATIC SNP_PRE_VALIDATED_RANGE | mPreValidatedRange [] |
SEV-SNP Page Validation functions.
Copyright (c) 2021 - 2024, AMD Incorporated. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file PeiSnpSystemRamValidate.c.
STATIC BOOLEAN DetectPreValidatedOverLap | ( | IN PHYSICAL_ADDRESS | StartAddress, |
IN PHYSICAL_ADDRESS | EndAddress, | ||
OUT SNP_PRE_VALIDATED_RANGE * | OverlapRange | ||
) |
Definition at line 43 of file PeiSnpSystemRamValidate.c.
VOID EFIAPI MemEncryptSevSnpPreValidateSystemRam | ( | IN PHYSICAL_ADDRESS | BaseAddress, |
IN UINTN | NumPages | ||
) |
Pre-validate the system RAM when SEV-SNP is enabled in the guest VM.
[in] | BaseAddress | Base address |
[in] | NumPages | Number of pages starting from the base address |
Definition at line 76 of file PeiSnpSystemRamValidate.c.
STATIC SNP_PRE_VALIDATED_RANGE mPreValidatedRange[] |
Definition at line 27 of file PeiSnpSystemRamValidate.c.
STATIC UINT8 mPscBufferPage[EFI_PAGE_SIZE] |
Definition at line 20 of file PeiSnpSystemRamValidate.c.