3 Work Area structure definition
5 Copyright (c) 2021, AMD Inc.
7 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef __OVMF_WORK_AREA_H__
11 #define __OVMF_WORK_AREA_H__
14 // Guest type for the work area
17 GUEST_TYPE_NON_ENCRYPTED
,
24 // Confidential computing work area header definition. Any change
25 // to the structure need to be kept in sync with the
26 // PcdOvmfConfidentialComputingWorkAreaHeader.
28 // PcdOvmfConfidentialComputingWorkAreaHeader ==
29 // sizeof (CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER)
30 // PcdOvmfConfidentialComputingWorkAreaHeader defined in:
31 // OvmfPkg/OvmfPkg.dec
32 // OvmfPkg/OvmfPkgDefines.fdf.inc
33 typedef struct _CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER
{
36 } CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER
;
39 // Internal structure for holding SEV-ES information needed during SEC phase
40 // and valid only during SEC phase and early PEI during platform
43 // This structure is also used by assembler files:
44 // OvmfPkg/ResetVector/ResetVector.nasmb
45 // OvmfPkg/ResetVector/Ia32/PageTables64.asm
46 // OvmfPkg/ResetVector/Ia32/Flat32ToFlat64.asm
47 // any changes must stay in sync with its usage.
49 typedef struct _SEC_SEV_ES_WORK_AREA
{
55 UINT64 EncryptionMask
;
56 } SEC_SEV_ES_WORK_AREA
;
59 // The SEV work area definition.
61 typedef struct _SEV_WORK_AREA
{
62 CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER Header
;
64 SEC_SEV_ES_WORK_AREA SevEsWorkArea
;
68 CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER Header
;
69 SEV_WORK_AREA SevWorkArea
;