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

igvm_defs: add support for specific purpose memory in MemoryMapEntryType. #64

Merged
Merged
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
8 changes: 8 additions & 0 deletions igvm_defs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1168,6 +1168,14 @@ pub enum MemoryMapEntryType {
/// applied. Some isolation architectures only allow VTL2 protections on
/// certain memory ranges.
VTL2_PROTECTABLE = 0x3,
/// Specific Purpose memory (SPM). This is memory with special properties
/// reserved for specific purposes and shouldn't be used by the firmware
/// or operating system. This corresponds with the UEFI memory map entry
/// flag EFI_MEMORY_SP, introduced in UEFI 2.8.
/// See https://uefi.org/specs/UEFI/2.10/07_Services_Boot_Services.html
#[cfg(feature = "unstable")]
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
SPECIFIC_PURPOSE = 0x4,
}

impl Default for MemoryMapEntryType {
Expand Down
Loading