summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/ConfidentialComputingGuestAttr.h
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Include/ConfidentialComputingGuestAttr.h')
-rw-r--r--MdePkg/Include/ConfidentialComputingGuestAttr.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/MdePkg/Include/ConfidentialComputingGuestAttr.h b/MdePkg/Include/ConfidentialComputingGuestAttr.h
index 6a13018015..dd2541c6dc 100644
--- a/MdePkg/Include/ConfidentialComputingGuestAttr.h
+++ b/MdePkg/Include/ConfidentialComputingGuestAttr.h
@@ -22,4 +22,7 @@ typedef enum {
CCAttrIntelTdx = 0x200,
} CONFIDENTIAL_COMPUTING_GUEST_ATTR;
+#define CC_GUEST_IS_TDX(x) ((x) == CCAttrIntelTdx)
+#define CC_GUEST_IS_SEV(x) ((x) == CCAttrAmdSev || (x) == CCAttrAmdSevEs || (x) == CCAttrAmdSevSnp)
+
#endif