diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2025-04-25 12:49:52 -0500 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-04-26 09:14:28 +0000 |
commit | 856bdc8eec0fd450ffb582808ad9649a5d02b480 (patch) | |
tree | 70fe4e7c464849d50e872e2d43e840f58d68a6af /MdeModulePkg/Library/VarCheckUefiLib | |
parent | 956ef6cd8b233a4137c19acc354f479854378bf5 (diff) | |
download | edk2-master.tar.gz edk2-master.tar.bz2 edk2-master.zip |
The MsrExit() routine uses an incorrect register to check for the CAA MSR.
Instead of checking RCX, the input register for RDMSR/WRMSR that holds the
MSR value, it is checking RAX, which results in failure to detect the CAA
MSR request. The check should only be checking the lower 32-bits of the
register (ECX), too.
Change the check in MsrExit() to check the MSR value contained in ECX.
Fixes: 47001ab98914 ("Ovmfpkg/CcExitLib: Provide SVSM discovery support")
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Diffstat (limited to 'MdeModulePkg/Library/VarCheckUefiLib')
0 files changed, 0 insertions, 0 deletions