TianoCore EDK2 master
|
#include <Uefi/UefiBaseType.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/MemEncryptSevLib.h>
#include <Library/AmdSvsmLib.h>
#include "SnpPageStateChange.h"
Go to the source code of this file.
Functions | |
STATIC BOOLEAN | SevSnpIsVmpl0 (VOID) |
VOID EFIAPI | MemEncryptSevSnpPreValidateSystemRam (IN PHYSICAL_ADDRESS BaseAddress, IN UINTN NumPages) |
Variables | |
STATIC UINT8 | gVmpl0Data [4096] |
SEV-SNP Page Validation functions.
Copyright (c) 2021 - 2024, AMD Incorporated. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SecSnpSystemRamValidate.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 65 of file SecSnpSystemRamValidate.c.
STATIC BOOLEAN SevSnpIsVmpl0 | ( | VOID | ) |
The function checks whether SEV-SNP guest is booted under VMPL0.
TRUE | The guest is booted under VMPL0 |
FALSE | The guest is not booted under VMPL0 |
Definition at line 32 of file SecSnpSystemRamValidate.c.
STATIC UINT8 gVmpl0Data[4096] |
Definition at line 22 of file SecSnpSystemRamValidate.c.