coconut-svsm / svsm

COCONUT-SVSM
MIT License
123 stars 43 forks source link

Fix PVALIDATE #209

Closed msft-jlange closed 10 months ago

msft-jlange commented 10 months ago

The previous PVALIDATE code issued "xor eax, eax" immediately after the call to PVALIDATE, but XOR will set CF=0. This hides any CF-based error returned by the PVALIDATE instruction.

This change exposes validation bugs in the current code, and should not merge until at least #207 and #208 have merged.