#[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.
Sourcepub const VTL2_TDX_PAGE_TABLES: MemoryVtlType
pub const VTL2_TDX_PAGE_TABLES: MemoryVtlType
This memory is used by VTL2 for TDX AP startup page tables, and is marked as reserved to the kernel.
Sourcepub const VTL2_BOOTSHIM_LOG_BUFFER: MemoryVtlType
pub const VTL2_BOOTSHIM_LOG_BUFFER: MemoryVtlType
This memory is used by VTL2 to store in-memory bootshim logs. It is marked as reserved to the kernel.
Sourcepub const VTL2_PERSISTED_STATE_HEADER: MemoryVtlType
pub const VTL2_PERSISTED_STATE_HEADER: MemoryVtlType
This memory is used by VTL2 to store a persisted state header. This memory is marked as reserved to the kernel.
Sourcepub const VTL2_PERSISTED_STATE_PROTOBUF: MemoryVtlType
pub const VTL2_PERSISTED_STATE_PROTOBUF: MemoryVtlType
This memory is used by VTL2 to store the persisted protobuf payload. This memory 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 moreSource§impl Debug for MemoryVtlType
impl Debug for MemoryVtlType
Source§impl DefaultEncoding for MemoryVtlType
impl DefaultEncoding for MemoryVtlType
Source§impl DescribeTable for MemoryVtlType
impl DescribeTable for MemoryVtlType
Source§const DESCRIPTION: MessageDescription<'static>
const DESCRIPTION: MessageDescription<'static>
Source§impl Hash for MemoryVtlType
impl Hash for MemoryVtlType
Source§impl Ord for MemoryVtlType
impl Ord for MemoryVtlType
Source§fn cmp(&self, other: &MemoryVtlType) -> Ordering
fn cmp(&self, other: &MemoryVtlType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MemoryVtlType
impl PartialEq for MemoryVtlType
Source§impl PartialOrd for MemoryVtlType
impl PartialOrd for MemoryVtlType
Source§impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for MemoryVtlType
impl<'encoding, AnyR: 'static> StructDecodeMetadata<'encoding, AnyR> for MemoryVtlType
Source§impl<AnyR: 'static> StructEncodeMetadata<AnyR> for MemoryVtlType
impl<AnyR: 'static> StructEncodeMetadata<AnyR> for MemoryVtlType
Source§impl StructMetadata for MemoryVtlType
impl StructMetadata for MemoryVtlType
impl Copy for MemoryVtlType
impl Eq for MemoryVtlType
impl StructuralPartialEq for MemoryVtlType
Auto Trait Implementations§
impl Freeze for MemoryVtlType
impl RefUnwindSafe for MemoryVtlType
impl Send for MemoryVtlType
impl Sync for MemoryVtlType
impl Unpin for MemoryVtlType
impl UnwindSafe for MemoryVtlType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DescribedProtobuf for Twhere
T: DefaultEncoding + Protobuf,
<T as DefaultEncoding>::Encoding: DescribeMessage<T>,
impl<T> DescribedProtobuf for Twhere
T: DefaultEncoding + Protobuf,
<T as DefaultEncoding>::Encoding: DescribeMessage<T>,
§const DESCRIPTION: MessageDescription<'static>
const DESCRIPTION: MessageDescription<'static>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
impl<T> Protobuf for Twhere
T: DefaultEncoding,
<T as DefaultEncoding>::Encoding: MessageEncode<T, NoResources> + for<'a> MessageDecode<'a, T, NoResources> + FieldEncode<T, NoResources> + for<'a> FieldDecode<'a, T, NoResources>,
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
MessageEncode::write_message
].