3 SEV-SNP Page Validation functions.
5 Copyright (c) 2021 AMD Incorporated. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
11 #include <Uefi/UefiBaseType.h>
12 #include <Library/BaseLib.h>
13 #include <Library/MemEncryptSevLib.h>
15 #include "SnpPageStateChange.h"
18 Pre-validate the system RAM when SEV-SNP is enabled in the guest VM.
20 @param[in] BaseAddress Base address
21 @param[in] NumPages Number of pages starting from the base address
26 MemEncryptSevSnpPreValidateSystemRam (
27 IN PHYSICAL_ADDRESS BaseAddress
,
31 if (!MemEncryptSevSnpIsEnabled ()) {
35 InternalSetPageState (BaseAddress
, NumPages
, SevSnpPagePrivate
, TRUE
);