Crate virt

Source

Re-exports§

pub use crate::x86::X86InitialRegs as InitialRegs;
pub use crate::x86::X86PartitionCapabilities as PartitionCapabilities;
pub use crate::x86::vm;
pub use crate::x86::vp;

Modules§

aarch64
io
irqcon
Types related to supporting an interrupt controller.
state
Infrastructure to define VM state.
x86
x86-specific state.

Structs§

CpuidLeaf
A CPUID result.
CpuidLeafSet
A collection of CPUID results.
HvConfig
Hypervisor configuration.
LateMapVtl0MemoryConfig
Config used to determine late mapping VTL0 memory.
NeedsYield
An object that can be polled to see if a yield has been requested.
PartitionConfig
Partition creation configuration.
ProtoPartitionConfig
Prototype partition creation configuration.
StopVp
Object to check for VP stop requests.
StopVpSource
A source for StopVp.
UnexpectedIsolationType
An unexpected isolation type was provided.
VpIndex
The virtual processor index.
VpInfo
Per-processor topology information.
VpStopped
An error result that the VP stopped due to request.
Vtl2Config
VTL2 configuration.

Enums§

IsolationType
Isolation type for a partition.
LateMapVtl0AllowedRanges
Which ranges VTL2 is allowed to access before VTL0 ram is mapped.
LateMapVtl0MemoryPolicy
Policy for the partition when mapping VTL0 memory late.
PageVisibility
Page visibility types for isolated partitions.
UnimplementedDevice
VpHaltReason
The reason that Processor::run_vp returned.

Traits§

Aarch64Partition
ARM64-specific partition methods.
AcceptInitialPages
Extension trait for accepting initial pages.
BindProcessor
Trait used to bind a processor to the current thread.
DeviceBuilder
Hv1
Hypervisor
Partition
Methods for manipulating a VM partition.
PartitionAccessState
Provides access to partition state for save, restore, and reset.
PartitionMemoryMap
Trait for mapping process memory into a partition.
PartitionMemoryMapper
Processor
ProtoPartition
Trait for a prototype partition, one that is partially created but still needs final configuration.
ResetPartition
Extension trait for resetting the partition.
ScrubVtl
Extension trait for scrubbing higher VTL state while leaving lower VTLs untouched.
Synic
SynicMonitor
Provides monitor page functionality for a Synic implementation.
VtlMemoryProtection
Change memory protections for lower VTLs. This can be used to share memory with a lower VTL or make memory accesses trigger an intercept. This is intended for dynamic state as initial memory protections are applied at VM start.
X86Partition
X86-specific partition methods.

Type Aliases§

Error