OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4123 APIs which are defined in CcExitLib.h are added with the CcExit prefix. This is to make the APIs' name more meaningful. This change impacts OvmfPkg/UefiCpuPkg. Cc: Eric Dong <eric.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Brijesh Singh <brijesh.singh@amd.com> Cc: Erdem Aktas <erdemaktas@google.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: James Bottomley <jejb@linux.ibm.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Signed-off-by: Min Xu <min.m.xu@intel.com>
This commit is contained in:
@@ -50,7 +50,7 @@ AmdSevSnpInitialize (
|
||||
}
|
||||
|
||||
//
|
||||
// Query the hypervisor feature using the VmgExit and set the value in the
|
||||
// Query the hypervisor feature using the CcExitVmgExit and set the value in the
|
||||
// hypervisor features PCD.
|
||||
//
|
||||
HvFeatures = GetHypervisorFeature ();
|
||||
@@ -129,19 +129,19 @@ GetHypervisorFeature (
|
||||
//
|
||||
// Initialize the GHCB
|
||||
//
|
||||
VmgInit (Ghcb, &InterruptState);
|
||||
CcExitVmgInit (Ghcb, &InterruptState);
|
||||
|
||||
//
|
||||
// Query the Hypervisor Features.
|
||||
//
|
||||
Status = VmgExit (Ghcb, SVM_EXIT_HYPERVISOR_FEATURES, 0, 0);
|
||||
Status = CcExitVmgExit (Ghcb, SVM_EXIT_HYPERVISOR_FEATURES, 0, 0);
|
||||
if ((Status != 0)) {
|
||||
SevEsProtocolFailure (GHCB_TERMINATE_GHCB_GENERAL);
|
||||
}
|
||||
|
||||
Features = Ghcb->SaveArea.SwExitInfo2;
|
||||
|
||||
VmgDone (Ghcb, InterruptState);
|
||||
CcExitVmgDone (Ghcb, InterruptState);
|
||||
|
||||
return Features;
|
||||
}
|
||||
|
Reference in New Issue
Block a user