]>
git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/Sec/AmdSev.h
c0b1ca96183df6c9024456a6fa93f2821c980458
2 File defines the Sec routines for the AMD SEV
4 Copyright (c) 2021, Advanced Micro Devices, Inc. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _AMD_SEV_SEC_INTERNAL_H__
11 #define _AMD_SEV_SEC_INTERNAL_H__
14 Handle an SEV-ES/GHCB protocol check failure.
16 Notify the hypervisor using the VMGEXIT instruction that the SEV-ES guest
17 wishes to be terminated.
19 @param[in] ReasonCode Reason code to provide to the hypervisor for the
24 SevEsProtocolFailure (
29 Validate the SEV-ES/GHCB protocol level.
31 Verify that the level of SEV-ES/GHCB protocol supported by the hypervisor
32 and the guest intersect. If they don't intersect, request termination.
41 Determine if the SEV is active.
43 During the early booting, GuestType is set in the work area. Verify that it
46 @retval TRUE SEV is enabled
47 @retval FALSE SEV is not enabled
56 Determine if SEV-ES is active.
58 During early booting, SEV-ES support code will set a flag to indicate that
59 SEV-ES is enabled. Return the value of this flag as an indicator that SEV-ES
62 @retval TRUE SEV-ES is enabled
63 @retval FALSE SEV-ES is not enabled