TianoCore EDK2 master
Loading...
Searching...
No Matches
ConfidentialComputingGuestAttr.h File Reference

Go to the source code of this file.

Macros

#define _CC_GUEST_IS_TDX(x)   ((x) == CCAttrIntelTdx)
 
#define CC_GUEST_IS_TDX(x)   _CC_GUEST_IS_TDX((x) & CCAttrTypeMask)
 
#define _CC_GUEST_IS_SEV(x)   ((x) == CCAttrAmdSev || (x) == CCAttrAmdSevEs || (x) == CCAttrAmdSevSnp)
 
#define CC_GUEST_IS_SEV(x)   _CC_GUEST_IS_SEV((x) & CCAttrTypeMask)
 

Enumerations

enum  CC_GUEST_TYPE { CcGuestTypeNonEncrypted = 0 , CcGuestTypeAmdSev , CcGuestTypeIntelTdx }
 
enum  CONFIDENTIAL_COMPUTING_GUEST_ATTR {
  CCAttrNotEncrypted = 0 , CCAttrAmdSev = 0x100 , CCAttrAmdSevEs = 0x101 , CCAttrAmdSevSnp = 0x102 ,
  CCAttrIntelTdx = 0x200 , CCAttrTypeMask = 0x000000000000ffff , CCAttrFeatureAmdSevEsDebugVirtualization = 0x0000000000010000 , CCAttrFeatureMask = 0xffffffffffff0000
}
 

Detailed Description

Definitions for Confidential Computing Guest Attributes

Copyright (c) 2021 AMD Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file ConfidentialComputingGuestAttr.h.

Macro Definition Documentation

◆ _CC_GUEST_IS_SEV

#define _CC_GUEST_IS_SEV (   x)    ((x) == CCAttrAmdSev || (x) == CCAttrAmdSevEs || (x) == CCAttrAmdSevSnp)

Definition at line 45 of file ConfidentialComputingGuestAttr.h.

◆ _CC_GUEST_IS_TDX

#define _CC_GUEST_IS_TDX (   x)    ((x) == CCAttrIntelTdx)

Definition at line 43 of file ConfidentialComputingGuestAttr.h.

◆ CC_GUEST_IS_SEV

#define CC_GUEST_IS_SEV (   x)    _CC_GUEST_IS_SEV((x) & CCAttrTypeMask)

Definition at line 46 of file ConfidentialComputingGuestAttr.h.

◆ CC_GUEST_IS_TDX

#define CC_GUEST_IS_TDX (   x)    _CC_GUEST_IS_TDX((x) & CCAttrTypeMask)

Definition at line 44 of file ConfidentialComputingGuestAttr.h.

Enumeration Type Documentation

◆ CC_GUEST_TYPE

enum CC_GUEST_TYPE

Definition at line 15 of file ConfidentialComputingGuestAttr.h.

◆ CONFIDENTIAL_COMPUTING_GUEST_ATTR

enum CONFIDENTIAL_COMPUTING_GUEST_ATTR

Definition at line 21 of file ConfidentialComputingGuestAttr.h.