--- /dev/null
+/** @file\r
+\r
+Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#ifndef CC_PROBE_LIB_H_\r
+#define CC_PROBE_LIB_H_\r
+\r
+#include <ConfidentialComputingGuestAttr.h>\r
+\r
+/**\r
+ Probe the ConfidentialComputing Guest type. See defition of\r
+ CC_GUEST_TYPE in <ConfidentialComputingGuestAttr.h>.\r
+\r
+ @return The guest type\r
+\r
+**/\r
+UINT8\r
+EFIAPI\r
+CcProbe (\r
+ VOID\r
+ );\r
+\r
+#endif\r
--- /dev/null
+/** @file\r
+\r
+ Null stub of CcProbeLib\r
+\r
+ Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+ SPDX-License-Identifier: BSD-2-Clause-Patent\r
+\r
+**/\r
+\r
+#include <Library/CcProbeLib.h>\r
+\r
+/**\r
+ Probe the ConfidentialComputing Guest type. See defition of\r
+ CC_GUEST_TYPE in <ConfidentialComputingGuestAttr.h>.\r
+\r
+ @return The guest type\r
+\r
+**/\r
+UINT8\r
+EFIAPI\r
+CcProbe (\r
+ VOID\r
+ )\r
+{\r
+ return CcGuestTypeNonEncrypted;\r
+}\r
--- /dev/null
+## @file\r
+# CcProbeLib null instance.\r
+#\r
+# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+#\r
+##\r
+\r
+[Defines]\r
+ INF_VERSION = 0x00010005\r
+ BASE_NAME = CcProbeLibNull\r
+ FILE_GUID = B15D67FE-0DAC-4316-8E26-8A6b85E43782\r
+ MODULE_TYPE = BASE\r
+ VERSION_STRING = 1.0\r
+ LIBRARY_CLASS = CcProbeLib\r
+\r
+[Sources]\r
+ CcProbeLibNull.c\r
+\r
+[Packages]\r
+ MdePkg/MdePkg.dec\r
#\r
RegisterFilterLib|Include/Library/RegisterFilterLib.h\r
\r
+ ## @libraryclass This library provides interfances to probe ConfidentialComputing guest type.\r
+ #\r
+ #\r
+ CcProbeLib|Include/Library/CcProbeLib.h\r
+\r
[LibraryClasses.IA32, LibraryClasses.X64, LibraryClasses.AARCH64]\r
## @libraryclass Provides services to generate random number.\r
#\r
MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf\r
\r
MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf\r
+ MdePkg/Library/CcProbeLibNull/CcProbeLibNull.inf\r
\r
[Components.IA32, Components.X64, Components.ARM, Components.AARCH64]\r
#\r