]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/MpInitLib/AmdSev.c
OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib
[mirror_edk2.git] / UefiCpuPkg / Library / MpInitLib / AmdSev.c
index 2dd8f4d74621aac1e3aa04dd70a2a8346fe4f29f..ca9bfed7f3b1e910d1207fac7c3a637e3f4d88fc 100644 (file)
@@ -209,7 +209,7 @@ SevEsPlaceApHlt (
     Msr.GhcbPhysicalAddress = AsmReadMsr64 (MSR_SEV_ES_GHCB);\r
     Ghcb                    = Msr.Ghcb;\r
 \r
-    VmgInit (Ghcb, &InterruptState);\r
+    CcExitVmgInit (Ghcb, &InterruptState);\r
 \r
     if (DoDecrement) {\r
       DoDecrement = FALSE;\r
@@ -221,13 +221,13 @@ SevEsPlaceApHlt (
       InterlockedDecrement ((UINT32 *)&CpuMpData->MpCpuExchangeInfo->NumApsExecuting);\r
     }\r
 \r
-    Status = VmgExit (Ghcb, SVM_EXIT_AP_RESET_HOLD, 0, 0);\r
+    Status = CcExitVmgExit (Ghcb, SVM_EXIT_AP_RESET_HOLD, 0, 0);\r
     if ((Status == 0) && (Ghcb->SaveArea.SwExitInfo2 != 0)) {\r
-      VmgDone (Ghcb, InterruptState);\r
+      CcExitVmgDone (Ghcb, InterruptState);\r
       break;\r
     }\r
 \r
-    VmgDone (Ghcb, InterruptState);\r
+    CcExitVmgDone (Ghcb, InterruptState);\r
   }\r
 \r
   //\r