9#ifndef CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_
10#define CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_
16 CcGuestTypeNonEncrypted = 0,
23 CCAttrNotEncrypted = 0,
27 CCAttrAmdSevEs = 0x101,
28 CCAttrAmdSevSnp = 0x102,
31 CCAttrIntelTdx = 0x200,
33 CCAttrTypeMask = 0x000000000000ffff,
38 CCAttrFeatureAmdSevEsDebugVirtualization = 0x0000000000010000,
40 CCAttrFeatureMask = 0xffffffffffff0000,
41} CONFIDENTIAL_COMPUTING_GUEST_ATTR;
43#define _CC_GUEST_IS_TDX(x) ((x) == CCAttrIntelTdx)
44#define CC_GUEST_IS_TDX(x) _CC_GUEST_IS_TDX((x) & CCAttrTypeMask)
45#define _CC_GUEST_IS_SEV(x) ((x) == CCAttrAmdSev || (x) == CCAttrAmdSevEs || (x) == CCAttrAmdSevSnp)
46#define CC_GUEST_IS_SEV(x) _CC_GUEST_IS_SEV((x) & CCAttrTypeMask)