]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c
OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib
[mirror_edk2.git] / UefiCpuPkg / Library / MpInitLib / X64 / AmdSev.c
index 4c4f81af7c22b234d2ca1c42693b96db87b126dc..bfda1e19030d2c7bb24c3391019996c1c55ce211 100644 (file)
@@ -150,16 +150,16 @@ SevSnpCreateSaveArea (
   Msr.GhcbPhysicalAddress = AsmReadMsr64 (MSR_SEV_ES_GHCB);\r
   Ghcb                    = Msr.Ghcb;\r
 \r
-  VmgInit (Ghcb, &InterruptState);\r
+  CcExitVmgInit (Ghcb, &InterruptState);\r
   Ghcb->SaveArea.Rax = SaveArea->SevFeatures;\r
-  VmgSetOffsetValid (Ghcb, GhcbRax);\r
-  VmgExitStatus = VmgExit (\r
+  CcExitVmgSetOffsetValid (Ghcb, GhcbRax);\r
+  VmgExitStatus = CcExitVmgExit (\r
                     Ghcb,\r
                     SVM_EXIT_SNP_AP_CREATION,\r
                     ExitInfo1,\r
                     ExitInfo2\r
                     );\r
-  VmgDone (Ghcb, InterruptState);\r
+  CcExitVmgDone (Ghcb, InterruptState);\r
 \r
   ASSERT (VmgExitStatus == 0);\r
   if (VmgExitStatus != 0) {\r