TianoCore EDK2 master
Loading...
Searching...
No Matches
SecSnpSystemRamValidate.c File Reference

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]
 

Detailed Description

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.

Function Documentation

◆ MemEncryptSevSnpPreValidateSystemRam()

VOID EFIAPI MemEncryptSevSnpPreValidateSystemRam ( IN PHYSICAL_ADDRESS  BaseAddress,
IN UINTN  NumPages 
)

Pre-validate the system RAM when SEV-SNP is enabled in the guest VM.

Parameters
[in]BaseAddressBase address
[in]NumPagesNumber of pages starting from the base address

Definition at line 65 of file SecSnpSystemRamValidate.c.

◆ SevSnpIsVmpl0()

STATIC BOOLEAN SevSnpIsVmpl0 ( VOID  )

The function checks whether SEV-SNP guest is booted under VMPL0.

Return values
TRUEThe guest is booted under VMPL0
FALSEThe guest is not booted under VMPL0

Definition at line 32 of file SecSnpSystemRamValidate.c.

Variable Documentation

◆ gVmpl0Data

STATIC UINT8 gVmpl0Data[4096]

Definition at line 22 of file SecSnpSystemRamValidate.c.