coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 43 forks source link

igvmbuilder: fix incorrect CPUID table construction #416

Closed msft-jlange closed 4 months ago

msft-jlange commented 4 months ago

The IGVM file specifies the set of CPUID leaves that are expected to be provided when the IGVM file is loaded. The builder was erroneously specifying leaf EAX=1 with subleaf ECX=1, which is not architecturally defined. This caused the subsequent CPUID lookup to fail when the SVSM would execute its CPUID lookup code.