coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 42 forks source link

igvmbuilder: configure XCR0 as expected in CPUID tables #511

Closed msft-jlange closed 2 weeks ago

msft-jlange commented 2 weeks ago

A recent change to the SVSM kernel requires XCR0 to match the value 1 when looking for CPUID[EAX=0Dh] leaves. However, the IGVM file builder was populating the CPUID template with XCR0=0, resulting in a mismatch when the CPUID lookup was attempted. This change sets XCR0=1 for the extended leaves in the CPUID template in the IGVM file so the constructed table matches the expected value at lookup time.