--- /dev/null
+/** @file\r
+Definitions for Confidential Computing Attribute\r
+\r
+Copyright (c) 2021 AMD Inc. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_\r
+#define CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_\r
+\r
+typedef enum {\r
+ /* The guest is running with memory encryption disabled. */\r
+ CCAttrNotEncrypted = 0,\r
+\r
+ /* The guest is running with AMD SEV memory encryption enabled. */\r
+ CCAttrAmdSev = 0x100,\r
+ CCAttrAmdSevEs = 0x101,\r
+ CCAttrAmdSevSnp = 0x102,\r
+\r
+ /* The guest is running with Intel TDX memory encryption enabled. */\r
+ CCAttrIntelTdx = 0x200,\r
+} CONFIDENTIAL_COMPUTING_GUEST_ATTR;\r
+\r
+#endif\r
# @Prompt FSB Clock.\r
gEfiMdePkgTokenSpaceGuid.PcdFSBClock|200000000|UINT32|0x0000000c\r
\r
+ ## This dynamic PCD indicates the memory encryption attribute of the guest.\r
+ # @Prompt Memory encryption attribute\r
+ gEfiMdePkgTokenSpaceGuid.PcdConfidentialComputingGuestAttr|0|UINT64|0x0000002e\r
+\r
[UserExtensions.TianoCore."ExtraFiles"]\r
MdePkgExtra.uni\r