TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
VOID | SevEsProtocolFailure (IN UINT8 ReasonCode) |
VOID | SevEsProtocolCheck (VOID) |
BOOLEAN | IsSevGuest (VOID) |
BOOLEAN | SevEsIsEnabled (VOID) |
VOID | SecValidateSystemRam (VOID) |
BOOLEAN | SevSnpIsEnabled (VOID) |
VOID | SecMapApicBaseUnencrypted (VOID) |
File defines the Sec routines for the AMD SEV
Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file AmdSev.h.
BOOLEAN IsSevGuest | ( | VOID | ) |
VOID SecMapApicBaseUnencrypted | ( | VOID | ) |
Map MMIO regions unencrypted if SEV-ES is active.
During early booting, page table entries default to having the encryption bit set for SEV-ES/SEV-SNP guests. In cases where there is MMIO to an address, the encryption bit should be cleared. Clear it here for any known MMIO accesses during SEC, which is currently just the APIC base address.
Map known MMIO regions unencrypted if SEV-ES is active.
During early booting, page table entries default to having the encryption bit set for SEV-ES/SEV-SNP guests. In cases where there is MMIO to an address, the encryption bit should be cleared. Clear it here for any known MMIO accesses during SEC, which is currently just the APIC base address.
VOID SecValidateSystemRam | ( | VOID | ) |
Validate System RAM used for decompressing the PEI and DXE firmware volumes when SEV-SNP is active. The PCDs SecValidatedStart and SecValidatedEnd are set in OvmfPkg/Include/Fdf/FvmainCompactScratchEnd.fdf.inc.
BOOLEAN SevEsIsEnabled | ( | VOID | ) |
VOID SevEsProtocolCheck | ( | VOID | ) |
VOID SevEsProtocolFailure | ( | IN UINT8 | ReasonCode | ) |
Handle an SEV-ES/GHCB protocol check failure.
Notify the hypervisor using the VMGEXIT instruction that the SEV-ES guest wishes to be terminated.
[in] | ReasonCode | Reason code to provide to the hypervisor for the termination request. |
Handle an SEV-SNP/GHCB protocol check failure.
Notify the hypervisor using the VMGEXIT instruction that the SEV-SNP guest wishes to be terminated.
[in] | ReasonCode | Reason code to provide to the hypervisor for the termination request. |