summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2024-03-08 07:32:09 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-04-17 20:04:41 +0000
commitee89b594306b98bee5aff590e8577b74a46c2619 (patch)
treef042a4a1deddad46b2bb4517e3aa0a1b258bf422 /UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
parent6ced1e91eff13dae1bfba95734e2b34a73601db2 (diff)
downloadedk2-ee89b594306b98bee5aff590e8577b74a46c2619.tar.gz
edk2-ee89b594306b98bee5aff590e8577b74a46c2619.tar.bz2
edk2-ee89b594306b98bee5aff590e8577b74a46c2619.zip
UefiCpuPkg/MpInitLib: Use AmdSvsmSnpVmsaRmpAdjust() to set/clear VMSA
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654 The RMPADJUST instruction is used to change the VMSA attribute of a page, but the VMSA attribute can only be changed when running at VMPL0. To prepare for running at a less priviledged VMPL, use the AmdSvsmLib library API to perform the RMPADJUST. The AmdSvsmLib library will perform the proper operation on behalf of the caller. Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Ray Ni <ray.ni@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Acked-by: Ray Ni <ray.ni@intel.com>
Diffstat (limited to 'UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf')
-rw-r--r--UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf1
1 files changed, 1 insertions, 0 deletions
diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf b/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
index 15c10b3060..41d5a80bc9 100644
--- a/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
+++ b/UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
@@ -62,6 +62,7 @@
UefiBootServicesTableLib
[LibraryClasses.IA32, LibraryClasses.X64]
+ AmdSvsmLib
CcExitLib
LocalApicLib
MicrocodeLib