coconut-svsm / svsm

COCONUT-SVSM
MIT License
122 stars 43 forks source link

platform: Get correct phys addr sizes when not using vtom #373

Closed AdamCDunlap closed 6 months ago

AdamCDunlap commented 6 months ago

The physical address sizes come from cpuid Fn8000_0008_EAX but due to a variable shadowing problem, when vtom was disabled it was instead taking it from cpuid Fn8000_001F_EAX.

Fixes: edf38b0c7f ("platform: Calculate PTE masks through platform abstraction")