diff options
| author | Tom Lendacky <thomas.lendacky@amd.com> | 2025-04-25 20:49:52 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-04-26 12:14:28 +0300 |
| commit | 856bdc8eec0fd450ffb582808ad9649a5d02b480 (patch) | |
| tree | 70fe4e7c464849d50e872e2d43e840f58d68a6af /BaseTools/Source/Python/Workspace/DscBuildData.py | |
| parent | 956ef6cd8b233a4137c19acc354f479854378bf5 (diff) | |
| download | edk2-856bdc8eec0fd450ffb582808ad9649a5d02b480.tar.xz | |
OvmfPkg/CcExitLib: Use the proper register when filtering MSRs
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 'BaseTools/Source/Python/Workspace/DscBuildData.py')
0 files changed, 0 insertions, 0 deletions
