Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: e674096accc8e57cd0dd84679905e1222423251e
https://github.com/tianocore/edk2/commit/e674096accc8e57cd0dd84679905e1222423251e
Author: Tom Lendacky <[email protected]>
Date: 2023-07-14 (Fri, 14 Jul 2023)
Changed paths:
M OvmfPkg/ResetVector/Ia32/Flat32ToFlat64.asm
Log Message:
-----------
OvmfPkg/ResetVector: Fix assembler bit test flag check
Commit 63c50d3ff2854a76432b752af4f2a76f33ff1974 changed the check that is
used to determine if SEV-ES is active. Originally, a CMP instruction with
a supporting JZ instruction was used for the check. It was changed to use
the BT instruction but not JZ instruction. The result of a BT instruction
changes the the carry flag (CF) and not the zero flag (ZF). As a result,
the wrong condition is being checked. Update the JZ to a JNC to properly
detect if SEV-ES is active.
Fixes: 63c50d3ff285 ("OvmfPkg/ResetVector: cache the SEV status MSR...")
Signed-off-by: Tom Lendacky <[email protected]>
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits