/** @file SEV-SNP Page Validation functions. Copyright (c) 2021 AMD Incorporated. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ #include #include #include #include #include "SnpPageStateChange.h" /** Pre-validate the system RAM when SEV-SNP is enabled in the guest VM. @param[in] BaseAddress Base address @param[in] NumPages Number of pages starting from the base address **/ VOID EFIAPI MemEncryptSevSnpPreValidateSystemRam ( IN PHYSICAL_ADDRESS BaseAddress, IN UINTN NumPages ) { if (!MemEncryptSevSnpIsEnabled ()) { return; } // // All the pre-validation must be completed in the PEI phase. // ASSERT (FALSE); }