Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firmware/guest: add ALIAS_CHECK_COMPLETE to attestation report #264

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/firmware/guest/types/snp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ bitfield! {
/// Bit 2 indicates if ECC memory is used.
/// Bit 3 indicates if RAPL is disabled.
/// Bit 4 indicates if ciphertext hiding is enabled
/// Bits 5-63 are reserved.
/// Bit 5 indicates if DRAM alias check is complete (CVE-2024-21944)
/// Bits 6-63 are reserved.
#[repr(C)]
#[derive(Default, Deserialize, Clone, Copy, Serialize)]
pub struct PlatformInfo(u64);
Expand All @@ -488,8 +489,10 @@ bitfield! {
pub rapl_disabled, _: 3, 3;
/// Indicates that ciphertext hiding is enabled
pub ciphertext_hiding_enabled, _: 4, 4;
/// Indicates that DRAM alias check is complete
pub dram_alias_check_complete, _: 5, 5;
/// reserved
reserved, _: 5, 63;
reserved, _: 6, 63;
}

impl Display for PlatformInfo {
Expand All @@ -503,13 +506,15 @@ Platform Info ({}):
ECC Enabled: {}
RAPL Disabled: {}
Ciphertext Hiding Enabled: {}
DRAM Alias Check Complete: {}
"#,
self.0,
self.smt_enabled(),
self.tsme_enabled(),
self.ecc_enabled(),
self.rapl_disabled(),
self.ciphertext_hiding_enabled(),
self.dram_alias_check_complete(),
)
}
}
Expand Down
Loading