#[repr(transparent)]pub struct MemoryVtlType(pub u32);
Expand description
The memory type reported from the bootshim to usermode, for which VTL a given memory range is for.
Tuple Fields§
§0: u32
Implementations§
Source§impl MemoryVtlType
impl MemoryVtlType
Sourcepub const VTL0: MemoryVtlType
pub const VTL0: MemoryVtlType
This memory is for VTL0.
Sourcepub const VTL2_RAM: MemoryVtlType
pub const VTL2_RAM: MemoryVtlType
This memory is used by VTL2 as regular ram.
Sourcepub const VTL2_CONFIG: MemoryVtlType
pub const VTL2_CONFIG: MemoryVtlType
This memory holds VTL2 config data, which is marked as reserved to the kernel.
Sourcepub const VTL2_SIDECAR_IMAGE: MemoryVtlType
pub const VTL2_SIDECAR_IMAGE: MemoryVtlType
This memory is used by the VTL2 sidecar as it’s image, and is marked as reserved to the kernel.
Sourcepub const VTL2_SIDECAR_NODE: MemoryVtlType
pub const VTL2_SIDECAR_NODE: MemoryVtlType
This memory is used by the VTL2 sidecar as node memory, and is marked as reserved to the kernel.
Sourcepub const VTL0_MMIO: MemoryVtlType
pub const VTL0_MMIO: MemoryVtlType
This range is mmio for VTL0.
Sourcepub const VTL2_MMIO: MemoryVtlType
pub const VTL2_MMIO: MemoryVtlType
This range is mmio for VTL2.
Sourcepub const VTL2_RESERVED: MemoryVtlType
pub const VTL2_RESERVED: MemoryVtlType
This memory holds VTL2 data which should be preserved by the kernel and usermode. Today, this is only used for SNP: VMSA, CPUID pages, and secrets pages.
Sourcepub const VTL2_GPA_POOL: MemoryVtlType
pub const VTL2_GPA_POOL: MemoryVtlType
This memory is used by VTL2 usermode as a persisted GPA page pool. This memory is part of VTL2’s address space, not VTL0’s. It is marked as reserved to the kernel.
Trait Implementations§
Source§impl Clone for MemoryVtlType
impl Clone for MemoryVtlType
Source§fn clone(&self) -> MemoryVtlType
fn clone(&self) -> MemoryVtlType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more