You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Misleading display of new V5 attestation report fields (TIO_EN, PAGE_SWAP_DISABLE) on V3/V4 reports #330
When parsing and displaying attestation reports, the sev crate currently shows newly introduced bitfields TIO_EN (in PLATFORM_INFO) and PAGE_SWAP_DISABLE (in GUEST_POLICY) (both added in ABI Rev 1.58) as false for older reports (e.g. V3, V4).
This behavior can be misleading because these fields did not exist in earlier versions of the attestation report. Displaying them as false may suggest that the feature is explicitly disabled, while in reality the field is simply not present.
These fields should be represented as None rather than false when parsing V3/V4 reports. This would be consistent with how other fields introduced in ABI Rev 1.58 (LAUNCH_MIT_VECTOR and CURRENT_MIT_VECTOR) are currently handled.
Hello @hyperfinitism I have attempted to resolve this issue in this PR: #378
So I noticed that guest policy and platform info are their own independent structures and not necessarily tied to the version of the attestation report. So I'm using the firmware version to parse these fields rather than report version. Would love your thoughts on this approach!
Activity
DGonzalezVillal commentedon Apr 2, 2026
Hello @hyperfinitism I have attempted to resolve this issue in this PR:
#378
So I noticed that guest policy and platform info are their own independent structures and not necessarily tied to the version of the attestation report. So I'm using the firmware version to parse these fields rather than report version. Would love your thoughts on this approach!