]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/Library/PeilessStartupLib/PeilessStartup.c
OvmfPkg/IntelTdx: Measure TdHob and Configuration FV in SecMain
[mirror_edk2.git] / OvmfPkg / Library / PeilessStartupLib / PeilessStartup.c
index 79d3a178a65f2832256fa4f38fce6a8489ea629a..164aa2d61911e33cb8308c672654715f82828e85 100644 (file)
@@ -176,25 +176,7 @@ PeilessStartup (
 \r
   if (TdIsEnabled ()) {\r
     //\r
-    // Measure HobList\r
-    //\r
-    Status = TdxHelperMeasureTdHob ();\r
-    if (EFI_ERROR (Status)) {\r
-      ASSERT (FALSE);\r
-      CpuDeadLoop ();\r
-    }\r
-\r
-    //\r
-    // Measure Tdx CFV\r
-    //\r
-    Status = TdxHelperMeasureCfvImage ();\r
-    if (EFI_ERROR (Status)) {\r
-      ASSERT (FALSE);\r
-      CpuDeadLoop ();\r
-    }\r
-\r
-    //\r
-    // Build GuidHob for tdx measurement\r
+    // Build GuidHob for the tdx measurements which were done in SEC phase.\r
     //\r
     Status = TdxHelperBuildGuidHobForTdxMeasurement ();\r
     if (EFI_ERROR (Status)) {\r